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

Image import is not tested #114

Closed
mcapuccini opened this issue Mar 16, 2017 · 7 comments
Closed

Image import is not tested #114

mcapuccini opened this issue Mar 16, 2017 · 7 comments
Assignees
Milestone

Comments

@mcapuccini
Copy link
Member

We need to write CI for image import/export for the supported cloud providers

@mcapuccini mcapuccini added this to the 0.2.0 milestone Mar 16, 2017
@mcapuccini mcapuccini self-assigned this Mar 16, 2017
@mcapuccini mcapuccini modified the milestones: 0.3.0, 0.2.0 Mar 17, 2017
@sneumann
Copy link
Contributor

Hi, image import may not be available on all Ostacks. I get:

TASK [upload image kubenow-v020a1 if not present ( url= https://httpd.pharmb.io/kubenow-img/kubenow-v020a1.qcow2 )] ***
changed: [localhost] => {"changed": true, "cmd": "glance --os-image-api-version 1 image-create --copy-from \"https://httpd.pharmb.io/kubenow-img/kubenow-v020a1.qcow2\" --disk-format qcow2 --min-disk 20 --container-format bare --name kubenow-v020a1 --progress | grep -w id | awk '{print $4}'", "delta": "0:00:01.598477", "end": "2017-04-29 20:51:12.423866", "rc": 0, "start": "2017-04-29 20:51:10.825389", "stderr": "400 Bad Request: External sources are not supported: 'https://httpd.pharmb.io/kubenow-img/kubenow-v020a1.qcow2' (HTTP 400)", "stdout": "", "stdout_lines": [], "warnings": []}

@mcapuccini
Copy link
Member Author

Hi @sneumann. Do you mean that you would like the CI to import the image automatically in your OpenStack installation?

@mcapuccini
Copy link
Member Author

Fixed in #158

@sneumann
Copy link
Contributor

sneumann commented May 2, 2017

Hi, sorry for the late response, my issue is that on an OStack without
support for remote image locations there is the response 400 Bad Request: External sources are not supported but the ansible snippet will happily retry until it bails out.
It should be smart and give a reasonable error message for thus 400 Bad request.
Yours, Steffen

@mcapuccini
Copy link
Member Author

mcapuccini commented May 2, 2017

I see! I just merged a major refactory #158 that also fixed some problems with the OpenStack import. I was also very annoyed by this behaviour. Would you mind to test it?

@sneumann
Copy link
Contributor

sneumann commented May 2, 2017 via email

@mcapuccini
Copy link
Member Author

@sneumann Yes, there is a point, the new playbook downloads locally first and then uploads to OS. In the new glance API they removed the http/https image location when uploading images. I don't understand why they've done this. I was doing some research on Google, but I didn't really find any explanation for that. We'll do more research and come back to you.

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

No branches or pull requests

2 participants