Skip to content
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

landscape handler needs to set RUN=1 in /etc/default/landscape-client #2289

Closed
ubuntu-server-builder opened this issue May 9, 2023 · 7 comments
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1042758

Launchpad details
affected_projects = ['cloud-init (Ubuntu)', 'cloud-init (Ubuntu Precise)']
assignee = therve
assignee_name = Thomas Herve
date_closed = 2012-10-01T18:25:34.312549+00:00
date_created = 2012-08-28T14:04:54.866788+00:00
date_fix_committed = 2012-09-05T20:59:03.764461+00:00
date_fix_released = 2012-10-01T18:25:34.312549+00:00
id = 1042758
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1042758
milestone = None
owner = ahasenack
owner_name = Andreas Hasenack
private = False
status = fix_released
submitter = ahasenack
submitter_name = Andreas Hasenack
tags = ['verification-done']
duplicates = [1053020]

Launchpad user Andreas Hasenack(ahasenack) wrote on 2012-08-28T14:04:54.866788+00:00

==== Begin SRU Information ===
[IMPACT]
 * explanation: The prevents people using cloud-init and Landscape to automatically register instances. The configuration will be updated, but Landscape won't start, thus forcing people to either write additional code or manually go the instances.
 * justification: without this landscape integration of cloud instances requires further effort by the user
 * Fix: the fix is simple, it writes 'RUN=1' to /etc/default/landscape-client if and only if landscape configuration is given.

[TESTCASE]
To reproduce the problem, create a cloud-init configuration with Landscape credentials:
#cloud-config
landscape:
 - account_name: "$host_account"
 - computer_title: "Test instance"
 - cloud: true

Using the released version, the configuration will be written, but the client won't start and the instance won't register. With the fixed version, the client will start and register to Landscape hosted.

The change is minimal and only impact the Landscape portion of the code. https://code.launchpad.net/~therve/cloud-init/fix-landscape-config/+merge/122870 contains the relevant changeset.

The user-data at http://paste.ubuntu.com/1256164/ should result in the ppa being added, cloud-init being upgraded, and the new code correctly being used.

[Regression Potential]
 * There is very little potential for regression here. The changes modified path is only taken if there is landscape configuration given to cloud-init.

==== End SRU Information ===

The landscape handler needs to also set RUN=1 in /etc/default/landscape-client. Without it, the initscript /etc/init.d/landscape-client won't start the service.

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 9, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2012-09-05T20:59:03.235909+00:00

fixed in revno 645.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2012-09-19T17:41:09.255843+00:00

Status changed to 'Confirmed' because the bug affects multiple users.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2012-09-20T02:10:10.859648+00:00

This bug was fixed in the package cloud-init - 0.7.0~bzr659-0ubuntu1


cloud-init (0.7.0~bzr659-0ubuntu1) quantal; urgency=low

  • New upstream snapshot.
    • add signal handlers to more cleanly exit
    • add logging fallback in case logging fails
    • documentation fix for landscape config (LP: #1042764)
    • do not write a comment in /etc/hostname (LP: #1052664)
    • fix incorrect ubuntu mirrors for 'ports' arches [Robbie Basak]
    • fix generation of hostname based on ip address in datasource
      (LP: #1050962) [Andy Grimm]
    • remove 'start networking' from cloud-init-nonet and replace it
      with container specific fixes (LP: #1031065)
    • fix landscape configuration so client will run (LP: #1042758)
    • enable all available datasources (adding AltCloud and None)
    • fix bug where user data scripts re-ran on upgrade from 10.04 versions
      (LP: #1049146)
      -- Scott Moser smoser@ubuntu.com Wed, 19 Sep 2012 22:08:51 -0400

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2012-10-05T15:25:26.462022+00:00

The fix to 12.04 was uploaded on Wednesday in cloud-init_0.6.3-0ubuntu1.1.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Clint Byrum(clint-fewbar) wrote on 2012-10-17T20:49:43.058105+00:00

Hello Andreas, or anyone else affected,

Accepted cloud-init into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/cloud-init/0.6.3-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Clint Byrum(clint-fewbar) wrote on 2012-11-07T22:02:57.598019+00:00

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2012-11-07T22:03:26.503625+00:00

This bug was fixed in the package cloud-init - 0.6.3-0ubuntu1.1


cloud-init (0.6.3-0ubuntu1.1) precise-proposed; urgency=low

[Thomas Hervé]

  • if configuration enables landscape, then set RUN=1 in /etc/default/landscape
    (LP: #1042758)
    -- Scott Moser smoser@ubuntu.com Tue, 02 Oct 2012 10:59:05 -0400

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant