-
Notifications
You must be signed in to change notification settings - Fork 106
error on glance setup #195
Comments
Seems like there is an issue with the glance user, does |
root@controller: I do see that glance user is created |
Salam alikom, I have a solution to all glance problems:the constructor of puppetlabs-openstack module was forgotten to install glance registry service in the storage, this error make your identity_uri variable unchangeable. step 01:add registry installation to this file /etc/puppet/modules/openstack/manifests/role/storage.pp : step 02:install glance and python-glanceclient packages rather than glance-api and glance-registry finally i think everything is will be insha Allah correct, |
The registry profile is a noop: https://github.com/puppetlabs/puppetlabs-openstack/blob/master/manifests/profile/glance/registry.pp#L3
The master branch targets the kilo release, not the juno release, and the package names in the glance module should be up to date for kilo. If you find they are incorrect you can file a bug against the puppet-glance module. |
Hi @srikanth787, Can you try installing the openstack-selinux package? I'm now able to reproduce this bug with certain versions of selinux, and installing the openstack-selinux package fixed it. If this solves your issue too we can potentially find a place for it in the module. |
HI @cmurphy , a have the same problem @srikanth787 on Ubuntu 14.04, how i can resolve this problem? root@os-tst-storage01:~# /usr/bin/glance -dv --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://172.16.33.4:35357/v2.0 image-list From controller the same error/ |
Info: /Stage[main]/Glance::Api/Glance_cache_config[DEFAULT/auth_url]: Scheduling refresh of Service[glance-api]
Notice: /Stage[main]/Glance::Registry/Exec[glance-manage db_sync]: Triggered 'refresh' from 53 events
Info: /Stage[main]/Glance::Registry/Exec[glance-manage db_sync]: Scheduling refresh of Service[glance-api]
Info: /Stage[main]/Glance::Registry/Exec[glance-manage db_sync]: Scheduling refresh of Service[glance-registry]
Notice: /Stage[main]/Glance::Registry/Service[glance-registry]: Triggered 'refresh' from 18 events
Notice: /Stage[main]/Glance::Api/Service[glance-api]: Triggered 'refresh' from 47 events
Error: Could not prefetch glance_image provider 'glance': Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://172.16.33.4:35357/v2.0/ image-list' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://172.16.33.4:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: /Stage[main]/Openstack::Setup::Cirros/Glance_image[Cirros]/ensure: change from absent to present failed: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://172.16.33.4:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0001 - related established]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0002 - localhost]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0003 - localhost]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Pre/Firewall[0022 - ssh]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Post/Firewall[8999 - Accept all management network traffic]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Post/Firewall[9100 - Accept all vm network traffic]/ensure: created
Notice: /Stage[main]/Openstack::Profile::Firewall::Post/Firewall[9999 - Reject remaining traffic]/ensure: created
Info: Creating state file /var/lib/puppet/state/state.yaml
Notice: Finished catalog run in 397.60 seconds
storage node setup is ending with this error.
root@storage:~# puppet agent -t --server=pupmaster
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_update_last_success.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_updates.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/rabbitmq_erlang_cookie.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Caching catalog for storage
Info: Applying configuration version '1432484231'
Error: Could not prefetch glance_image provider 'glance': Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://172.16.33.4:35357/v2.0/ image-list' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://172.16.33.4:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Error: /Stage[main]/Openstack::Setup::Cirros/Glance_image[Cirros]/ensure: change from absent to present failed: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password na-mu-va --os-region-name openstack --os-auth-url http://172.16.33.4:35357/v2.0/ image-create --name=Cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status 401.
Invalid OpenStack Identity credentials.
Notice: Finished catalog run in 10.35 seconds
root@storage:~#
root@controller:
# source openrc# glance image-listroot@controller:
Request returned failure status 401.
Invalid OpenStack Identity credentials.
root@controller:~#
The text was updated successfully, but these errors were encountered: