Git Product home page Git Product logo

Comments (3)

ubuntu-server-builder avatar ubuntu-server-builder commented on June 10, 2024

Launchpad user Scott Moser(smoser) wrote on 2011-10-31T15:54:53.533939+00:00

Garret, I pulled your systemd files from Fedora under revno 465.
If there is other work to do, let me know.

from cloud-init.

ubuntu-server-builder avatar ubuntu-server-builder commented on June 10, 2024

Launchpad user Kevin Brackney(kbrackney) wrote on 2012-02-16T16:10:19.513893+00:00

Installed Packages
Name : cloud-init
Arch : noarch
Version : 0.6.2
Release : 0.7.bzr457.fc16

Under Fedora 16, the systemd resource cloud-config.target is defined as requiring both cloud-init-local.service and cloud-init.service. If no local datastore is defined (as possibly in an EC2 deployment), the cloud-init-local.service exits with a non-zero return code causing a cascade of failures related to dependent services:

Feb 15 18:47:09 domU-12-31-39-00-85-B2 [CLOUDINIT] cloud-init[INFO]: cloud-init start-local running: Wed, 15 Feb 2012 23:47:09 +0000. up 9.73 seconds
Feb 15 18:47:09 domU-12-31-39-00-85-B2 [CLOUDINIT] init.py[DEBUG]: searching for data source in ['DataSourceNoCloud', 'DataSourceOVF']
Feb 15 18:47:09 domU-12-31-39-00-85-B2 [CLOUDINIT] init.py[DEBUG]: Did not find data source. searched classes: ['DataSourceNoCloud', 'DataSourceOVF']

Feb 15 18:47:09 domU-12-31-39-00-85-B2 systemd[1]: cloud-init-local.service: main process exited, code=exited, status=1
Feb 15 18:47:09 domU-12-31-39-00-85-B2 systemd[1]: Job cloud-final.service/start failed with result 'dependency'.
Feb 15 18:47:09 domU-12-31-39-00-85-B2 systemd[1]: Job cloud-config.service/start failed with result 'dependency'.
Feb 15 18:47:09 domU-12-31-39-00-85-B2 systemd[1]: Job cloud-config.target/start failed with result 'dependency'.
Feb 15 18:47:09 domU-12-31-39-00-85-B2 systemd[1]: Unit cloud-init-local.service entered failed state.

cloud-init-local.service - Initial cloud-init job (pre-networking)
Loaded: loaded (/lib/systemd/system/cloud-init-local.service; enabled)
Active: failed since Wed, 15 Feb 2012 18:57:58 -0500; 1h 8min ago
Process: 374 ExecStart=/usr/bin/cloud-init start-local (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/cloud-init-local.service

Suggest changing the /lib/systemd/system/cloud-config.target definition to remove the mandatory requirement on cloud-init-local.service and make it optional. This should then allow the instance to be configured appropriately from the cloud-providers metadata/userdata resource as the remaining services will be allowed to run.

from cloud-init.

ubuntu-server-builder avatar ubuntu-server-builder commented on June 10, 2024

Launchpad user Garrett Holmstrom(gholms) wrote on 2012-02-17T18:28:56.115264+00:00

Good catch, Kevin. cloud-init shouldn't be failing when no data source exists. That is fixed in bzr rev. 524.

from cloud-init.

Related Issues (20)

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.