Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Liberty on Ubuntu 14.04 Nova service-list Error 401

I have upgraded multinode openstack liberty installation recently and I got all services running except the nova service. I have upgraded from icehouse to liberty and due to all the configuration changes I don't know if my nova.conf is correct anymore. I have update it to the latest config but it seems that it's not communicating with keystone. This is nova on Controller node to be clear.

When I do:

nova service-list
ERROR (Unauthorized): Unauthorized (HTTP 401) (Request-ID: req-b1816082-ba85-42f5-9d37-f8bdffeaa729)

nova.conf:

[DEFAULT]
log_dir = /var/log/nova
state_path = /var/lib/nova
verbose = True
api_paste_config = /etc/nova/api-paste.ini
compute_scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://10.0.0.1:8774/v2/
root_helper = sudo nova-rootwrap /etc/nova/rootwrap.conf
auto_assign_floating_ip = True
vif_plugging_is_fatal = False
vif_plugging_timeout = 0
multihost = True
compute_driver = libvirt.LibvirtDriver
allow_same_net_traffic = False
auth_strategy = keystone
my_ip = 10.0.0.1
enabled_apis = osapi_compute,metadata

# Vnc configuration
vnc_enabled = true
novnc_enabled = true
ssl_only = true
cert = /home/ubuntu/cert-ssl/cert.cer
key = /home/ubuntu/cert-ssl/private.key
novncproxy_port = 6080

linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron
network_api_class = nova.network.neutronv2.api.API
compute_driver = libvirt.LibvirtDriver

# Cinder #
volume_api_class = nova.volume.cinder.API
osapi_volume_listen_port = 5900

# Network settings
[neutron]
url = http://10.0.0.1:9696
auth_uri = http://10.0.0.1:5000/v2.0/
identity_uri = http://10.0.0.1:35357
admin_tenant_name = service
admin_username = neutron
admin_password = adminPassword
metadata_proxy_shared_secret  =  sharedsecret
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
service_metadata_proxy = True

[libvirt]
virt_type = kvm

[keystone_authtoken]
auth_uri = http://10.0.0.1:5000/v2.0/
identity_uri = http://10.0.0.1:35357
admin_tenant_name = service
admin_username = nova
admin_password = adminPassword

[glance]
api_servers = 10.0.0.1:9292
image_service = nova.image.glance.GlanceImageService

[cinder]
os_region_name = RegionOne

[database]
connection = mysql://nova:nova@10.0.0.1/nova

[vnc]
enabled = True
keymap = en-us
novncproxy_base_url = https://10.0.0.1:6080/vnc_auto.html
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.1

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

What am I missing here? Everything is exported correctly, all other services are running ok, neutron, keystone (issuing tokens without a problem), glance and cinder.

Liberty on Ubuntu 14.04 Nova service-list Error 401

I have upgraded multinode openstack liberty installation recently and I got all services running except the nova service. I have upgraded from icehouse to liberty and due to all the configuration changes I don't know if my nova.conf is correct anymore. I have update it to the latest config but it seems that it's not communicating with keystone. This is nova on Controller node to be clear.

When I do:

nova service-list
ERROR (Unauthorized): Unauthorized (HTTP 401) (Request-ID: req-b1816082-ba85-42f5-9d37-f8bdffeaa729)

nova.conf:

[DEFAULT]
log_dir = /var/log/nova
state_path = /var/lib/nova
verbose = True
api_paste_config = /etc/nova/api-paste.ini
compute_scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://10.0.0.1:8774/v2/
root_helper = sudo nova-rootwrap /etc/nova/rootwrap.conf
auto_assign_floating_ip = True
vif_plugging_is_fatal = False
vif_plugging_timeout = 0
multihost = True
compute_driver = libvirt.LibvirtDriver
allow_same_net_traffic = False
auth_strategy = keystone
my_ip = 10.0.0.1
enabled_apis = osapi_compute,metadata

# Vnc configuration
vnc_enabled = true
novnc_enabled = true
ssl_only = true
cert = /home/ubuntu/cert-ssl/cert.cer
key = /home/ubuntu/cert-ssl/private.key
novncproxy_port = 6080

linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron
network_api_class = nova.network.neutronv2.api.API
compute_driver = libvirt.LibvirtDriver

# Cinder #
volume_api_class = nova.volume.cinder.API
osapi_volume_listen_port = 5900

# Network settings
[neutron]
url = http://10.0.0.1:9696
auth_uri = http://10.0.0.1:5000/v2.0/
identity_uri = http://10.0.0.1:35357
admin_tenant_name = service
admin_username = neutron
admin_password = adminPassword
metadata_proxy_shared_secret  =  sharedsecret
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
service_metadata_proxy = True

[libvirt]
virt_type = kvm

[keystone_authtoken]
auth_uri = http://10.0.0.1:5000/v2.0/
identity_uri = http://10.0.0.1:35357
admin_tenant_name = service
admin_username = nova
admin_password = adminPassword

[glance]
api_servers = 10.0.0.1:9292
image_service = nova.image.glance.GlanceImageService

[cinder]
os_region_name = RegionOne

[database]
connection = mysql://nova:nova@10.0.0.1/nova

[vnc]
enabled = True
keymap = en-us
novncproxy_base_url = https://10.0.0.1:6080/vnc_auto.html
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.1

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

Edit (added rabbit settings to the nova.conf):

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.1
rabbit_userid = openstack
rabbit_password = openstack
rabbit_virtual_host = /

What am I missing here? Everything is exported correctly, all other services are running ok, neutron, keystone (issuing tokens without a problem), glance and cinder.

Liberty on Ubuntu 14.04 Nova service-list Error 401

I have upgraded multinode openstack liberty installation recently and I got all services running except the nova service. I have upgraded from icehouse to liberty and due to all the configuration changes I don't know if my nova.conf is correct anymore. I have update it to the latest config but it seems that it's not communicating with keystone. This is nova on Controller node to be clear.

When I do:

nova service-list
ERROR (Unauthorized): Unauthorized (HTTP 401) (Request-ID: req-b1816082-ba85-42f5-9d37-f8bdffeaa729)

nova.conf:

[DEFAULT]
log_dir = /var/log/nova
state_path = /var/lib/nova
verbose = True
api_paste_config = /etc/nova/api-paste.ini
compute_scheduler_driver = nova.scheduler.filter_scheduler.FilterScheduler
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://10.0.0.1:8774/v2/
root_helper = sudo nova-rootwrap /etc/nova/rootwrap.conf
auto_assign_floating_ip = True
vif_plugging_is_fatal = False
vif_plugging_timeout = 0
multihost = True
compute_driver = libvirt.LibvirtDriver
allow_same_net_traffic = False
auth_strategy = keystone
my_ip = 10.0.0.1
enabled_apis = osapi_compute,metadata

# Vnc configuration
vnc_enabled = true
novnc_enabled = true
ssl_only = true
cert = /home/ubuntu/cert-ssl/cert.cer
key = /home/ubuntu/cert-ssl/private.key
novncproxy_port = 6080

linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron
network_api_class = nova.network.neutronv2.api.API
compute_driver = libvirt.LibvirtDriver

# Cinder #
volume_api_class = nova.volume.cinder.API
osapi_volume_listen_port = 5900

# Network settings
[neutron]
url = http://10.0.0.1:9696
auth_uri = http://10.0.0.1:5000/v2.0/
identity_uri = http://10.0.0.1:35357
admin_tenant_name = service
admin_username = neutron
admin_password = adminPassword
metadata_proxy_shared_secret  =  sharedsecret
libvirt_vif_driver = nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
service_metadata_proxy = True

[libvirt]
virt_type = kvm

[keystone_authtoken]
auth_uri = http://10.0.0.1:5000/v2.0/
identity_uri = http://10.0.0.1:35357
admin_tenant_name = service
admin_username = nova
admin_password = adminPassword

[glance]
api_servers = 10.0.0.1:9292
image_service = nova.image.glance.GlanceImageService

[cinder]
os_region_name = RegionOne

[database]
connection = mysql://nova:nova@10.0.0.1/nova

[vnc]
enabled = True
keymap = en-us
novncproxy_base_url = https://10.0.0.1:6080/vnc_auto.html
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.1

[oslo_concurrency]
lock_path = /var/lib/nova/tmp

Edit (added rabbit settings to the nova.conf):

[oslo_messaging_rabbit]
rabbit_host = 10.0.0.1
rabbit_userid = openstack
rabbit_password = openstack
rabbit_virtual_host = /

Edit2:

I have a creds file that I source, but it's the same thing.

export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_REGION_NAME=RegionOne
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=adminpassword
export OS_AUTH_URL='http://10.0.0.1:5000/v3'
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_TYPE=password

I have added oslo rabbit settings to nova.conf and still the same error. I guess the problem could be here somewhere? What am I missing here? Everything is exported correctly, all other services are running ok, neutron, keystone (issuing tokens without a problem), glance and cinder.