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

Fix upload octavia script #283

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nicolasbock
Copy link
Collaborator

Signed-off-by: Nicolas Bock [email protected]

@nicolasbock nicolasbock self-assigned this Dec 6, 2024

set -x

ID=$(openstack image show --format value --column id jammy)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only enhancement here would be to have the script accept an optional argument - focal/jammy/noble/etc, but default to jammy if none is given.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a command line option for the series.

@nicolasbock nicolasbock force-pushed the critical-sparrow branch 5 times, most recently from 55c4076 to e8ff91f Compare December 9, 2024 20:30
Copy link
Member

@dosaboy dosaboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hasnt been necessary in my experience and I believe that is because as long as you have a Jammy and Focal image in Glance (which I think we always do by default?) then the retrofit charm discovers the image it needs and therefore does not require any arguments when running the action.

Perhaps you could describe what exactly this is fixing in the commit message?

The current version fails with the following error:

```console
$ ./tools/upload_octavia_amphora_image.sh
Running operation 5 with 1 task
  - task 6 on unit-octavia-diskimage-retrofit-0

Waiting for task 6...
Action id 6 failed: unable to find suitable source image
```

Signed-off-by: Nicolas Bock <[email protected]>
@nicolasbock
Copy link
Collaborator Author

The command is failing with:

$ ./tools/upload_octavia_amphora_image.sh 
Running operation 5 with 1 task
  - task 6 on unit-octavia-diskimage-retrofit-0

Waiting for task 6...
Action id 6 failed: unable to find suitable source image

I updated the commit message.

Copy link
Collaborator Author

@nicolasbock nicolasbock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The retrofit action also times out without the --wati= 0s command line option and it fails to add a tag to the image it produces.

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

Successfully merging this pull request may close these issues.

3 participants