Re: Problem on running "nova boot myserver"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Could you send the output from `glance index`
> In any case you should be able to manually cut&paste
> the uuid you require from that output.

$ glance index
Failed to show index. Got error:
You are not authenticated.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

 Authentication required  

It requires authentication


Re-run following commands;-

[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-api.conf paste_deploy flavor keystone
[sudo] password for satimis: 
[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-registry.conf paste_deploy flavor keystone
[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-api-paste.ini filter:authtoken admin_tenant_name service
[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-api-paste.ini filter:authtoken admin_user glance
[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-api-paste.ini filter:authtoken admin_password servicepass
[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-registry-paste.ini filter:authtoken admin_tenant_name service
[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-registry-paste.ini filter:authtoken admin_user glance
[satimis@fedora00 ~]$ sudo openstack-config --set /etc/glance/glance-registry-paste.ini filter:authtoken admin_password servicepass
[satimis@fedora00 ~]$ sudo systemctl restart openstack-glance-api.service
[satimis@fedora00 ~]$ sudo systemctl restart openstack-glance-registry.service

[satimis@fedora00 ~]$ glance index
Failed to show index. Got error:
You are not authenticated.
Details: 401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.

 Authentication required  

STILL THE SAME.

If IIRC it didn't complain when I first running `glance index`.  Unfortunately I haven't taken the output.



B.R.
SL




----- Original Message -----
> From: Pádraig Brady <P@xxxxxxxxxxxxxx>
> To: Stephen Liu <satimis@xxxxxxxxx>
> Cc: Fedora Cloud SIG <cloud@xxxxxxxxxxxxxxxxxxxxxxx>
> Sent: Wednesday, August 1, 2012 5:45 PM
> Subject: Re: Problem on running "nova boot myserver"
> 
> On 08/01/2012 10:20 AM, Stephen Liu wrote:
>>  Hi,
>> 
>>  $ nova boot myserver --flavor 2 --key_name mykey \
>>>  --image $(glance index | sed -n '/f16-jeos/{s/ .*//p;q}')
>>  usage: nova boot [--flavor <flavor>] [--image <image>] [--meta 
> <key=value>]
>>                   [--file <dst-path=src-path>] [--key_name 
> <key_name>]
>>                   [--user_data <user-data>]
>>                   [--availability_zone <availability-zone>]
>>                   [--security_groups <security_groups>]
>>                   [--block_device_mapping <dev_name=mapping>]
>>                   [--hint <key=value>]
>>                   [--nic <net-id=net-uuid,v4-fixed-ip=ip-addr>]
>>                   [--config-drive <value>] [--poll]
>>                   <name>
>>  error: argument --image: expected one argument
>>  Try `nova help boot' for more information.
>> 
>>  Still the same.
> 
> Well that's different, but probably because I messed up the command.
> Could you send the output from `glance index`
> In any case you should be able to manually cut&paste
> the uuid you require from that output.
> 
>>  Started "Launch an Instance" again.
>> 
>>  $ sudo modprobe nbd
>>  [sudo] password for satimis: 
>>  No complaint.
>> 
>> 
>>  $ nova keypair-add mykey > oskey.priv
>>  ERROR: You must provide a username via either --os_username or 
> env[OS_USERNAME]
>> 
>>  It complained.
>> 
>>  Any suggestion?  TIA
> 
> There is a step you may have done in another shell
> 
>   . ./keystonerc
> 
> That needs to be done before running most commands
> (once per shell session).
> 
> cheers,
> Pádraig.
> 
_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/cloud



[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Big List of Linux Books]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux