New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User metatadata scripts on GCE behaviour changed #2502

Open
justinsb opened this Issue Sep 16, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@justinsb

justinsb commented Sep 16, 2018

Issue Report

The behaviour of metadata scripts has changed now that scripts are run in a rkt container; it seems like it is no longer possible to start systemd unit files.

Bug

Container Linux Version

$ cat /etc/os-release 
NAME="Container Linux by CoreOS"
ID=coreos
VERSION=1855.4.0
VERSION_ID=1855.4.0
BUILD_ID=2018-09-11-0003
PRETTY_NAME="Container Linux by CoreOS 1855.4.0 (Rhyolite)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"

Environment

GCE

Expected Behavior

Previous versions of CoreOS were able to run scripts in GCE metadata.

Actual Behavior

Scripts now run inside a container, and it is hard to register a systemd service. I have figured out how to do most things in this environment, but I can't figure out how to start a systemd service.

Reproduction Steps

  1. Boot with a metadata script, SSH to the node and sudo rkt enter <id> into the rkt container
  2. Register a systemd unit file as normal
  3. systemctl enable <service> runs OK
  4. systemctl start <service> fails with Running in chroot, ignoring request: start

Other Information

Trying to mount the root and chroot execute on it fails with System has not been booted with systemd as init system (PID 1). Can't operate.

@ajeddeloh

This comment has been minimized.

Show comment
Hide comment
@ajeddeloh

ajeddeloh Sep 17, 2018

How the gce agent is run with rkt has not changed (except in the very latest alpha 1897.0.0 where the gce agent version was bumped). Can you confirm that this does in fact work in 1855.3.0 and 1800.7.0?

ajeddeloh commented Sep 17, 2018

How the gce agent is run with rkt has not changed (except in the very latest alpha 1897.0.0 where the gce agent version was bumped). Can you confirm that this does in fact work in 1855.3.0 and 1800.7.0?

@bgilbert

This comment has been minimized.

Show comment
Hide comment
@bgilbert

bgilbert Oct 16, 2018

Member

@justinsb What version of Container Linux was previously working for you?

Member

bgilbert commented Oct 16, 2018

@justinsb What version of Container Linux was previously working for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment