[Openstack] Help regarding openstack dashboard
Sadia Bashir
11msccssbashir at seecs.edu.pk
Wed Sep 3 11:37:21 UTC 2014
Hello Nithish,
Thank you for your reply, I found nova.conf in /etc/nove and keystone.conf
in /etc/keystone. Pls see attached. I found these two files different from
what you have told me. Should I change these files accordingly in order to
make things work?
On Wed, Sep 3, 2014 at 2:36 PM, nithish B <bestofnithish at gmail.com> wrote:
> Hi Sadia,
> If you cannot find nova.conf and keystone.conf in your system, do the
> following:
>
> 1. Copy the following to a file.
>
> NOVA_CONF=/etc/nova/nova.conf
> KEYSTONE_CONF=/etc/keystone/keystone.conf
>
> cp ${NOVA_CONF}{,.bak}
> cat > ${NOVA_CONF} <<EOF
> [DEFAULT]
> dhcpbridge_flagfile=/etc/nova/nova.conf
> dhcpbridge=/usr/bin/nova-dhcpbridge
> logdir=/var/log/nova
> state_path=/var/lib/nova
> lock_path=/var/lock/nova
> root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
> verbose=True
>
> use_syslog = True
> syslog_log_facility = LOG_LOCAL0
>
> api_paste_config=/etc/nova/api-paste.ini
> enabled_apis=ec2,osapi_compute,metadata
>
> # Libvirt and Virtualization
> libvirt_use_virtio_for_bridges=True
> connection_type=libvirt
> libvirt_type=qemu
>
> # Database
> sql_connection=mysql://nova:${MYSQL_NOVA_PASS}@${MYSQL_HOST}/nova
>
> # Messaging
> rabbit_host=${MYSQL_HOST}
>
> # EC2 API Flags
> #ec2_host=${MYSQL_HOST}
> #ec2_dmz_host=${MYSQL_HOST}
> #ec2_private_dns_show_ip=True
>
> # Network settings
> network_api_class=nova.network.neutronv2.api.API
> neutron_url=http://${MY_IP}:9696
> neutron_auth_strategy=keystone
> neutron_admin_tenant_name=service
> neutron_admin_username=neutron
> neutron_admin_password=neutron
> neutron_admin_auth_url=http://${MY_IP}:5000/v2.0
> libvirt_vif_driver=nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver
> linuxnet_interface_driver=nova.network.linux_net.LinuxOVSInterfaceDriver
> #firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
> security_group_api=neutron
> firewall_driver=nova.virt.firewall.NoopFirewallDriver
>
> service_neutron_metadata_proxy=true
> neutron_metadata_proxy_shared_secret=foo
>
> #Metadata
> #metadata_host = ${MYSQL_HOST}
> #metadata_listen = ${MYSQL_HOST}
> #metadata_listen_port = 8775
>
> # Cinder #
> volume_driver=nova.volume.driver.ISCSIDriver
> enabled_apis=ec2,osapi_compute,metadata
> volume_api_class=nova.volume.cinder.API
> iscsi_helper=tgtadm
> iscsi_ip_address=${CONTROLLER_HOST}
>
> # Images
> image_service=nova.image.glance.GlanceImageService
> glance_api_servers=${GLANCE_HOST}:9292
>
> # Scheduler
> scheduler_default_filters=AllHostsFilter
>
> # Auth
> auth_strategy=keystone
> #keystone_ec2_url=http://${KEYSTONE_ENDPOINT}:5000/v2.0/ec2tokens
>
> # NoVNC
> novnc_enabled=true
> novncproxy_host=${MY_IP}
> novncproxy_base_url=http://${MY_IP}:6080/vnc_auto.html
> novncproxy_port=6080
>
> xvpvncproxy_port=6081
> xvpvncproxy_host=${MY_IP}
> xvpvncproxy_base_url=http://${MY_IP}:6081/console
>
> vncserver_proxyclient_address=${MY_IP}
> vncserver_listen=0.0.0.0
>
> [keystone_authtoken]
> service_protocol = http
> service_host = ${MY_IP}
> service_port = 5000
> auth_host = ${MY_IP}
> auth_port = 35357
> auth_protocol = http
> auth_uri = http://${MY_IP}:35357/
> admin_tenant_name = ${SERVICE_TENANT}
> admin_user = ${NOVA_SERVICE_USER}
> admin_password = ${NOVA_SERVICE_PASS}
>
>
> EOF
>
> sudo chmod 0640 $NOVA_CONF
> sudo chown nova:nova $NOVA_CONF
>
> sudo nova-manage db sync
>
> sudo stop nova-api
> sudo stop nova-scheduler
> sudo stop nova-novncproxy
> sudo stop nova-consoleauth
> sudo stop nova-conductor
> sudo stop nova-cert
>
>
> sudo start nova-api
> sudo start nova-scheduler
> sudo start nova-conductor
> sudo start nova-cert
> sudo start nova-consoleauth
> sudo start nova-novncproxy
>
> #sudo sed -i "s#^connection.*#connection =
> mysql://keystone:${MYSQL_KEYSTONE_PASS}@${MYSQL_HOST}/keystone#"
> ${KEYSTONE_CONF}
> #sudo sed -i 's/^#admin_token.*/admin_token = ADMIN/' ${KEYSTONE_CONF}
> #sudo sed -i 's,^#log_dir.*,log_dir = /var/log/keystone,' ${KEYSTONE_CONF}
>
> #sudo echo "use_syslog = True" >> ${KEYSTONE_CONF}
> #sudo echo "syslog_log_facility = LOG_LOCAL0" >> ${KEYSTONE_CONF}
>
> sudo stop keystone
> sudo start keystone
>
> sudo keystone-manage db_sync
>
> sudo apt-get -y install python-keystoneclient
>
> export ENDPOINT=${MY_IP}
> export SERVICE_TOKEN=ADMIN
> export SERVICE_ENDPOINT=http://${ENDPOINT}:35357/v2.0
> export PASSWORD=openstack
>
> source .keystonerc
>
>
>
> P.S. Provide the parameters in accord to your setup.
>
>
>
> Regards,
> Nitish B.
>
>
> On Wed, Sep 3, 2014 at 2:31 PM, Sadia Bashir <11msccssbashir at seecs.edu.pk>
> wrote:
>
>> By the way I followed instructions given at www.devstack.org and its
>> installation went smooth.
>>
>>
>> On Wed, Sep 3, 2014 at 1:51 PM, Sadia Bashir <11msccssbashir at seecs.edu.pk
>> > wrote:
>>
>>> Hello everyone,
>>>
>>> I am new here, It is my first email to the list. I successfully
>>> completed installation of openstack on Ubuntu 14.04 LTS and it gave me URLs
>>> for accessing dashboard, admin user password and keystone services as well.
>>> But I am facing following issues:
>>>
>>> 1. After I login to openstack dashboard, I got the following error:
>>> Error: Unable to retrieve usage information
>>> I am not able to create any instances, volumes or anything there.
>>> 2. I tried following this link
>>> https://answers.launchpad.net/horizon/+question/181166 to resolve error
>>> but I found no nova.conf and keystone.conf in my system.
>>>
>>> Pls tell me how do I resolve these errors. Any useful link, suggestion
>>> or help will be appreciated. Thank you in advance!
>>>
>>>
>>> --
>>> Regards,
>>> Sadia
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>>
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>>
>
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140903/8e13f188/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nova.conf
Type: application/octet-stream
Size: 2383 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140903/8e13f188/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keystone.conf
Type: application/octet-stream
Size: 43584 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140903/8e13f188/attachment-0001.obj>
More information about the Openstack
mailing list