Coder Social home page Coder Social logo

gentoo-cloud-prep's People

Contributors

matt1360 avatar prometheanfire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gentoo-cloud-prep's Issues

failure to resize disk

This seems to be the only failure I get now, with recent images from today (July 20). Everything else works fine :)

Jul 21 01:52:58 localhost util.py[DEBUG]: Running command ['gpart', 'recover', '/dev/vda'] with allowed return codes [0] (shell=False, capture=True)
Jul 21 01:52:58 localhost util.py[WARNING]: Failed: gpart recover /dev/vda
Jul 21 01:52:58 localhost util.py[DEBUG]: Failed: gpart recover /dev/vda
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/cloudinit/config/cc_growpart.py", line 132, in resize
    util.subp(["gpart", "recover", diskdev])
  File "/usr/lib64/python2.7/site-packages/cloudinit/util.py", line 1570, in subp
    cmd=args)
ProcessExecutionError: Unexpected error while running command.
Command: ['gpart', 'recover', '/dev/vda']
Exit code: 1
Reason: -
Stdout: ''
Stderr: 'Usage: gpart [options] device\nOptions: [-b <backup MBR>][-C c,h,s][-c][-d][-E][-e][-f][-g][-h][-i]\n         [-K <last sector>][-k <# of sectors>][-L][-l <log file>]\n         [-n <increment>][-q][-s <sector-size>][-t <module-name>]\n         [-V][-v][-W <device>][-w <module-name,weight>]\ngpart v0.1h (c) 1999-2001 Michail Brzitwa <[email protected]>.\nGuess PC-type hard disk partitions.\n\n'
Jul 21 01:52:58 localhost util.py[DEBUG]: resize_devices took 0.017 seconds
Jul 21 01:52:58 localhost cc_growpart.py[DEBUG]: '/' FAILED: failed to resize: disk=/dev/vda, ptnum=2: Unexpected error while running command.
Command: ['gpart', 'recover', '/dev/vda']
Exit code: 1
Reason: -
Stdout: ''
Stderr: 'Usage: gpart [options] device\nOptions: [-b <backup MBR>][-C c,h,s][-c][-d][-E][-e][-f][-g][-h][-i]\n         [-K <last sector>][-k <# of sectors>][-L][-l <log file>]\n         [-n <increment>][-q][-s <sector-size>][-t <module-name>]\n         [-V][-v][-W <device>][-w <module-name,weight>]\ngpart v0.1h (c) 1999-2001 Michail Brzitwa <[email protected]>.\nGuess PC-type hard disk partitions.\n\n'
Jul 21 01:52:58 localhost stages.py[DEBUG]: Running module resizefs (<module 'cloudinit.config.cc_resizefs' from '/usr/lib64/python2.7/site-packages/cloudinit/config/cc_resizefs.pyc'>) with frequency always
Jul 21 01:52:58 localhost helpers.py[DEBUG]: Running config-resizefs using lock (<cloudinit.helpers.DummyLock object at 0x29b91fbe990>)
Jul 21 01:52:58 localhost util.py[DEBUG]: Reading from /proc/3509/mountinfo (quiet=False)
Jul 21 01:52:58 localhost util.py[DEBUG]: Read 2051 bytes from /proc/3509/mountinfo
Jul 21 01:52:58 localhost cc_resizefs.py[DEBUG]: resize_info: dev=/dev/vda2 mnt_point=/ path=/

2015-07-22 image lacks /usr/portage/profiles/ ?

As a consequence I can neither emerge anything nor select a profile:

$ sudo emerge nano
setlocale: unsupported locale setting
!!! Repository 'x-portage' is missing masters attribute in '/usr/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility


!!! /etc/portage/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)


!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.

$ eselect profile list
!!! Error: Failed to get a list of valid profiles
exiting

$ ls -l /usr/portage/profiles/
ls: cannot access /usr/portage/profiles/: No such file or directory

set root password?

Should we even care or just allow through sudo.

It's useful for console access.

No password set

There doesn't appear to be a password set, and I can't see cloud-init output that would allow me to login using ssh.

How do I get in? :)

Dhcpcd static route bug breaks cloud-init

First, thanks for the images!

The latest hardened image (openstack-amd64-hardened-nomultilib-20151226.qcow2) seems to suffer from a bug [1] in dhcpcd not correctly setting the static routes. I've just deployed the image and upgraded dhcpcd to net-misc/dhcpcd-6.10.0 which seems to have fixed this for me.

Note that I haven't tested any of the other images to see if they have the same bugged version of dhcpcd in them, net-misc/dhcpcd-6.9.2.

[1] http://roy.marples.name/projects/dhcpcd/info/da3590c3991d6c25

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.