← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1525137] Re: doc wrong about BAK extensions of injection

 

Reviewed:  https://review.openstack.org/259567
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=426a4533335d3d5a517f123162631de038d763a0
Submitter: Jenkins
Branch:    master

commit 426a4533335d3d5a517f123162631de038d763a0
Author: jichenjc <jichenjc@xxxxxxxxxx>
Date:   Fri Dec 18 11:27:07 2015 +0800

    Remove incorrect comments on injection BAK method
    
    The BAK method is not correct based on existing mechanism
    
    Change-Id: I1615379763acdf81ffa356fb53049e8ba790685b
    Partial-Bug: #1515222
    Closes-Bug: #1525137


** Changed in: openstack-api-site
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1525137

Title:
  doc wrong about BAK extensions of injection

Status in OpenStack Compute (nova):
  In Progress
Status in openstack-api-site:
  Fix Released

Bug description:
  I cat following contents into a.pwd , note the '1' at /bin/sh1 of ssh line it's on purpose
  after following opreations, I didn't see fllowing mechanism talked in doc
  For example, if the /etc/passwd file exists, it is backed up as /etc/passwd.bak.1246036261.5785.

  
  https://github.com/openstack/nova/blob/master/api-guide/source/server_concepts.rst
  http://developer.openstack.org/api-ref-compute-v2.1.html

  
  $ sudo cat passwd
  root:x:0:0:root:/root:/bin/sh
  daemon:x:1:1:daemon:/usr/sbin:/bin/sh
  bin:x:2:2:bin:/bin:/bin/sh
  sys:x:3:3:sys:/dev:/bin/sh
  sync:x:4:100:sync:/bin:/bin/sync
  mail:x:8:8:mail:/var/spool/mail:/bin/sh
  proxy:x:13:13:proxy:/bin:/bin/sh
  www-data:x:33:33:www-data:/var/www:/bin/sh
  backup:x:34:34:backup:/var/backups:/bin/sh
  operator:x:37:37:Operator:/var:/bin/sh
  haldaemon:x:68:68:hald:/:/bin/sh
  dbus:x:81:81:dbus:/var/run/dbus:/bin/sh
  ftp:x:83:83:ftp:/home/ftp:/bin/sh
  nobody:x:99:99:nobody:/home:/bin/sh
  sshd:x:103:99:Operator:/var:/bin/sh1
  cirros:x:1000:1000:non-root user:/home/cirros:/bin/sh

  
  do the following 

  jichen@devstack1:/opt/stack/nova$ nova boot --file /etc/passwd=/home/jichen/a.pwd --image 9eee793a-25e5-4f42-bd9e-b869e60d3dbd --flavor m1.micro t6
  +--------------------------------------+----------------------------------------------------------------+
  | Property                             | Value                                                          |
  +--------------------------------------+----------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                                                         |
  | OS-EXT-AZ:availability_zone          |                                                                |
  | 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                            | 9VUVZY53nbFb                                                   |
  | config_drive                         |                                                                |
  | created                              | 2015-12-11T09:19:28Z                                           |
  | flavor                               | m1.micro (84)                                                  |
  | hostId                               |                                                                |
  | id                                   | 80f24559-2bd9-4709-b1a2-36709cfb3b50                           |
  | image                                | cirros-0.3.4-x86_64-uec (9eee793a-25e5-4f42-bd9e-b869e60d3dbd) |

  
  jichen@devstack1:/opt/stack/nova$ ssh cirros@10.0.0.17
  The authenticity of host '10.0.0.17 (10.0.0.17)' can't be established.
  RSA key fingerprint is c2:44:7a:4f:61:cb:1b:95:b4:3a:49:fe:ce:dc:1e:20.
  Are you sure you want to continue connecting (yes/no)? yes
  Warning: Permanently added '10.0.0.17' (RSA) to the list of known hosts.
  cirros@10.0.0.17's password:

  
  $ cd /etc
  $ ls
  TZ             cirros         fstab          init.d         ld.so.conf     mtab           profile        resolv.conf    shadow
  acpi           cirros-init    group          inittab        ld.so.conf.d   network        protocols      screenrc       ssl
  blkid.tab      default        hostname       inputrc        mke2fs.conf    os-release     random-seed    securetty      sudoers
  blkid.tab.old  dropbear       hosts          issue          modules        passwd         rc3.d          services       sudoers.d
  $ suco cat passwd
  -sh: suco: not found
  $ sudo cat passwd
  root:x:0:0:root:/root:/bin/sh
  daemon:x:1:1:daemon:/usr/sbin:/bin/sh
  bin:x:2:2:bin:/bin:/bin/sh
  sys:x:3:3:sys:/dev:/bin/sh
  sync:x:4:100:sync:/bin:/bin/sync
  mail:x:8:8:mail:/var/spool/mail:/bin/sh
  proxy:x:13:13:proxy:/bin:/bin/sh
  www-data:x:33:33:www-data:/var/www:/bin/sh
  backup:x:34:34:backup:/var/backups:/bin/sh
  operator:x:37:37:Operator:/var:/bin/sh
  haldaemon:x:68:68:hald:/:/bin/sh
  dbus:x:81:81:dbus:/var/run/dbus:/bin/sh
  ftp:x:83:83:ftp:/home/ftp:/bin/sh
  nobody:x:99:99:nobody:/home:/bin/sh
  sshd:x:103:99:Operator:/var:/bin/sh1
  cirros:x:1000:1000:non-root user:/home/cirros:/bin/sh

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1525137/+subscriptions