-
-
Save panxia6679/be50a7e687a532ae88d770f26ad2a9dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@bi-p12-upload-image5-image-prep-instance-mzpsabim3ors:~/f5-openstack-image-prep/f5_image_prep# python ve_image_sync.py -i BIGIP-11.6.0.0.0.401.qcow2 | |
Patching image... | |
sudo: unable to resolve host bi-p12-upload-image5-image-prep-instance-mzpsabim3ors | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ check_oldfile_full_path | |
+ '[' -f BIGIP-11.6.0.0.0.401.qcow2 ']' | |
++ basename BIGIP-11.6.0.0.0.401.qcow2 | |
+ ofname=BIGIP-11.6.0.0.0.401.qcow2 | |
+ '[' -z os_ready-BIGIP-11.6.0.0.0.401.qcow2 ']' | |
+ cp BIGIP-11.6.0.0.0.401.qcow2 /home/imageprep/os_ready-BIGIP-11.6.0.0.0.401.qcow2 | |
+ sleep 2 | |
+ qemu-nbd -d /dev/nbd0 | |
+ sleep 2 | |
+ qemu-nbd --connect=/dev/nbd0 /home/imageprep/os_ready-BIGIP-11.6.0.0.0.401.qcow2 | |
+ sleep 2 | |
+ pvscan | |
+ sleep 2 | |
+ echo 'The following command may cause '\''Can'\''t deactivate'\'' messages.' | |
+ echo 'These do not necessarily indicate a problem.' | |
+ vgchange -ay | |
+ sleep 2 | |
+ mkdir -p /mnt/bigip-config | |
+ '[' -n '' ']' | |
+ echo 'Waiting 15 seconds' | |
+ sleep 15 | |
+ umount /mnt/bigip-config | |
umount: /mnt/bigip-config: not mounted | |
+ '[' 1 -eq 1 ']' | |
+ umount /mnt/bigip-shared | |
umount: /mnt/bigip-shared: not found | |
+ '[' 1 -eq 1 ']' | |
++ get_dev set.1._config | |
++ ls -l /dev/vg-db-hda | |
++ cut '-d>' -f2 | |
++ grep set.1._config | |
++ cut -d/ -f2- | |
+ mount /dev/dm-10 /mnt/bigip-config | |
+ inject_files | |
+ '[' -f /home/imageprep/f5-openstack-image-prep/lib/f5_image_prep/startup.tar ']' | |
+ tar -xf /home/imageprep/f5-openstack-image-prep/lib/f5_image_prep/startup.tar -C /mnt/bigip-config/ | |
+ true | |
+ touch /mnt/bigip-config/firstboot | |
+ '[' -f none ']' | |
+ '[' -n '' ']' | |
+ '[' -n '' ']' | |
+ sleep 2 | |
+ umount /mnt/bigip-config | |
+ sleep 2 | |
+ '[' -n '' ']' | |
+ sleep 2 | |
+ vgchange -an | |
+ sleep 2 | |
+ qemu-nbd -d /dev/nbd0 | |
+ echo 'Patched image located at /home/imageprep/os_ready-BIGIP-11.6.0.0.0.401.qcow2' | |
+ set +x | |
Uploading patched image to glance... | |
Traceback (most recent call last): | |
File "ve_image_sync.py", line 162, in <module> | |
ve_image_sync.sync_image() | |
File "ve_image_sync.py", line 125, in sync_image | |
img_model = self._upload_image_to_glance(prepped_image) | |
File "ve_image_sync.py", line 108, in _upload_image_to_glance | |
gc = GlanceLib(self.os_creds).glance_client | |
File "/home/imageprep/f5-openstack-image-prep/f5_image_prep/openstack/glance.py", line 25, in __init__ | |
self.glance_client = get_glance_client(creds) | |
File "/home/imageprep/f5-openstack-image-prep/f5_image_prep/openstack/client.py", line 46, in get_glance_client | |
keystone_client = get_keystone_client(creds) | |
File "/home/imageprep/f5-openstack-image-prep/f5_image_prep/openstack/client.py", line 31, in get_keystone_client | |
auth_url=creds.auth_url) | |
File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 144, in __init__ | |
self.authenticate() | |
File "/usr/lib/python2.7/dist-packages/keystoneclient/utils.py", line 318, in inner | |
return func(*args, **kwargs) | |
File "/usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 392, in authenticate | |
resp = self.get_raw_token_from_identity_service(**kwargs) | |
File "/usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py", line 179, in get_raw_token_from_identity_service | |
"%s" % e) | |
keystoneclient.apiclient.exceptions.AuthorizationFailure: Authorization Failed: The resource could not be found. (HTTP 404) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment