prometheanfire / gentoo-cloud-prep Goto Github PK
View Code? Open in Web Editor NEWThis project forked from matt1360/gentoo-cloud-prep
Preparation for gentoo instances on an OpenStack cloud, including stage4 prep
This project forked from matt1360/gentoo-cloud-prep
Preparation for gentoo instances on an OpenStack cloud, including stage4 prep
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=/
Please install sys-power/acpid so that shutdown and reboot goes faster. Thanks!
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
for portage and stage3
use gkeys to do so
better for usage over iscsi I think (and specifically zvols)
Hi!
The current code produces this final /etc/conf.d/hostname
content:
# Set to the hostname of this machine
if [ -f /etc/hostname ];then
hostname=
else
hostname="localhost"
fi
That's because
cat > /etc/conf.d/hostname << EOL
lacks quoting, i.e. EOL
should be "EOL"
instead at https://github.com/prometheanfire/gentoo-cloud-prep/blob/master/files/prep.sh#L42-L49.
Hi!
I gave openstack-amd64-default-20150623.qcow2 a try today.
Using noVNC I can see that after selecting the first GRUB entry, an error
error: no suche device: 3d849a77-b17d-4e9f-ab87-a23c23d0ddd8
is displayed and the boot process hangs a few steps after that, see screenshots, below.
This gentoo-dev post from 2017 suggests the bump is trivial.
[quote] - "identical to 13.0 except for one parent entry"
Should we even care or just allow through sudo.
It's useful for console access.
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? :)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.