Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'mu project add service migrations' fails #18

Open
ajuvercr opened this issue Jul 2, 2021 · 1 comment
Open

'mu project add service migrations' fails #18

ajuvercr opened this issue Jul 2, 2021 · 1 comment

Comments

@ajuvercr
Copy link

ajuvercr commented Jul 2, 2021

Running command mu project add service migrations results in "Could not fetch image description. Are you online?".

After looking through mu this is due to globbing in bash when curling at line 194.
Adding -g flag fixes this issue.

Next I was greated with "Could not find image in the repository.", the search results in an empty data array.
This might be a new problem in the backend.
Possible fix:
Change line 177 serivce_image=$4 to service_image=semtech/mu-$4-service
Change line 194 to service_image_description=`curl -gs "https://info.mu.semte.ch/microservice-revisions?filter[:exact:i mage]=$service_image&filter[:exact:version]=$service_tag&page[size]=1"`

(this probably defeats the purpose though?)

@erikap
Copy link
Member

erikap commented Jul 8, 2021

@ajuvercr Thanks for the issue report!

The first error "Could not fetch image description. Are you online?" should be fixed in the new v1.0.3 release. It was caused by some local development URLs that slipped through in the released script.

The search currently doesn't support partial/fuzzy search, but only exact matches. Your proposed solution service_image=semtech/mu-$4-service will work for your case, but not all service names follow that naming pattern. It's also the intention to support images which are not part of the semtech namespace where image naming is out of our control.

If you source the completions in your shell as explained in the README with the latest release, you should have working tab completion now for the mu project add service command. That will at least hint that migrations is not a valid name, but mu-migrations-service should be used instead. It also completes version numbers after the service name btw.

The completions are a bit of an orphaned child at the moment which need to be revisited, but I hope the fixes in v1.0.3 unblock you at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants