[Openstack] {Disarmed} Re: Fedora/cirros instance failed to set root password

somshekar kadam som_kadam at yahoo.co.in
Sun Dec 21 11:14:29 UTC 2014


Hi Georgios Dimitrakakis/Girija Sharan,
Thanks for help, now I am bale to ssh and able to change root passwd. 
I ssh and they say sudo su as told by Georgios I am loged in as root, the using root command able to set new passwd for root. 

Now I am ble to run YUM, I seeing that I am not able to ping outside world I am able to ping my controller host 10.10.126.62. 

And my instance IP fixed one is 10.4.128.4 and floating IP is 10.10.126.133,
I am also able to ping other host which is not running the instance 10.10.126.54. I am looking into it. 

route -n shows[root at sunday fedora]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.4.128.3      0.0.0.0         UG    0      0        0 eth0
10.4.128.0      0.0.0.0         255.255.240.0   U     0      0        0 eth0


I amnot able to ping google.comlooking into it. 

thanks in advance 

regardsNeelu


Regards
Neelu 

     On Friday, 19 December 2014 8:19 PM, Georgios Dimitrakakis <giorgis at acmac.uoc.gr> wrote:
   

  Doing that is changing the password for "fedora" user and not "root"


 When you ssh as the "fedora" user do "sudo su" and you will be able to 
 login as "root" directly provided that the keys have been correctly 
 injected.

 You can then set the password for "root"

 Best,

 George

> Hi Girija Sharan,
>
> I tried it it is giving me
>
> [fedora at blabla ~]$ passwd
> Changing password for user fedora.
> Changing password for fedora.
> (current) UNIX password:
> passwd: Authentication token manipulation error
> [fedora at blabla ~]$
>
> [fedora at blabla ~]$ su - root
> Password:
> su: Authentication failure
>
> here is the admin pass as shown below "uTU3H5er7yZS"
>
> I enter this password gives error
>
> i the above commands used the same admin pass
>
> stack at celestial-PC-1:~/devstack$ nova boot --flavor 3 --image
> 9d30b9b5-d648-4af1-ad24-d5792d3f1909 --key-name nnnn --security-group
> default blabla
> 
> +--------------------------------------+----------------------------------------------------------------------+
> | Property | Value |
> 
> +--------------------------------------+----------------------------------------------------------------------+
> | OS-DCF:diskConfig | MANUAL |
> | OS-EXT-AZ:availability_zone | nova |
> | OS-EXT-SRV-ATTR:host | - |
> | OS-EXT-SRV-ATTR:hypervisor_hostname | - |
> | OS-EXT-SRV-ATTR:instance_name | instance-00000001 |
> | OS-EXT-STS:power_state | 0 |
> | OS-EXT-STS:task_state | scheduling |
> | OS-EXT-STS:vm_state | building |
> | OS-SRV-USG:launched_at | - |
> | OS-SRV-USG:terminated_at | - |
> | accessIPv4 | |
> | accessIPv6 | |
> | adminPass | uTU3H5er7yZS |
> | config_drive | |
> | created | 2014-12-19T12:29:45Z |
> | flavor | m1.medium (3) |
> | hostId | |
> | id | 898a3c21-c1bf-4325-93ac-f14315dd2210 |
> | image | Fedora-x86_64-20-20140618-sda
> (9d30b9b5-d648-4af1-ad24-d5792d3f1909) |
> | key_name | nnnn |
> | metadata | {} |
> | name | blabla |
> | os-extended-volumes:volumes_attached | [] |
> | progress | 0 |
> | security_groups | default |
> | status | BUILD |
> | tenant_id | 2d51ee7250aa4532801f83fda82468fc |
> | updated | 2014-12-19T12:29:46Z |
> | user_id | f923e8ad018a40c4a315fa1c23126eed |
> 
> +--------------------------------------+----------------------------------------------------------------------+
>
> Regards
> Neelu
>
>  On Friday, 19 December 2014 3:25 PM, Girija Sharan  wrote:
>
> Hi Som,
>
> As you said, you are able to ssh into the instance using keypair, why
> don't you just ssh into that and set root password using 'passwd'
> command or create another user with root permissions ?
>
> On Fri, Dec 19, 2014 at 3:06 PM, somshekar kadam  wrote:
>
>> Hi Girija Sharan,
>>
>> Thanks for pointing the link I will try and let me see if it works.
>>
>> I just need to set the root pasword so that I can install apache
>> wbserver on this instance.
>>
>> Is there any other best method to do it, which I not know.
>>
>> thanks in advance
>>
>> Regards
>> Neelu
>>
>> On Friday, 19 December 2014 2:44 PM, Girija Sharan wrote:
>>
>> Hi Som,
>>
>> Not sure on what you are looking for. But here is a link which
>> describe
>>
>> how to set root password during instance boot up.
>>
>>
> 
> http://kimizhang.wordpress.com/2014/03/18/how-to-inject-filemetassh-keyroot-passworduserdataconfig-drive-to-a-vm-during-nova-boot/
>> [10]
>>
>> On Fri, Dec 19, 2014 at 2:19 PM, somshekar kadam wrote:
>>
>>> Hi All,
>>>
>>> I am trying to set root password on
>>> Fedora-x86_64-20-20140618-sda/cirros instance it fails .
>>> DO I need to add anyother security rules, please what I am
>>> missing.
>>> I need to install apache webserver on this instance.
>>>
>>> Thanks in advance
>>>
>>> nova root-password gggg
>>> New password:
>>> Again:
>>> ERROR (HTTPNotImplemented): Unable to set password on instance
>>> (HTTP 501) (Request-ID: req-6d0eebe3-68c5-4d8d-80b7-8d4639b7c2d4)
>>>
>>> I have set all rules for security groups
>>> PC-1:~/devstack$ nova secgroup-list-rules default
>>> +-------------+-----------+---------+-----------+--------------+
>>> | IP Protocol | From Port | To Port | IP Range | Source Group |
>>> +-------------+-----------+---------+-----------+--------------+
>>> | icmp | -1 | -1 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [1] | |
>>> | tcp | 1 | 65535 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [2] | |
>>> | udp | 1 | 65535 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [3] | |
>>> | tcp | 22 | 22 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [4] | |
>>> | tcp | 80 | 80 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [5] | |
>>> | tcp | 443 | 443 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [6] | |
>>> | tcp | 3306 | 3306 | MAILSCANNER WARNING: NUMERICAL LINKS ARE
>>> OFTEN MALICIOUS: 0.0.0.0/0 [7] | |
>>> | tcp | 53 | 53 | MAILSCANNER WARNING: NUMERICAL LINKS ARE OFTEN
>>> MALICIOUS: 0.0.0.0/0 [8] | |
>>> +-------------+-----------+---------+-----------+--------------+
>>>
>>> Regards
>>> Neelu
>
>
>
> Links:
> ------
> [1] http://0.0.0.0/0
> [2] http://0.0.0.0/0
> [3] http://0.0.0.0/0
> [4] http://0.0.0.0/0
> [5] http://0.0.0.0/0
> [6] http://0.0.0.0/0
> [7] http://0.0.0.0/0
> [8] http://0.0.0.0/0
> [9] mailto:girijasharansingh at gmail.com
> [10]
> 
> http://kimizhang.wordpress.com/2014/03/18/how-to-inject-filemetassh-keyroot-passworduserdataconfig-drive-to-a-vm-during-nova-boot/
> [11] mailto:som_kadam at yahoo.co.in
> [12] mailto:som_kadam at yahoo.co.in



   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141221/1665abf1/attachment.html>


More information about the Openstack mailing list