Merge ~nrezinorn/cloud-init:fix_systemd_hostname into cloud-init:master
| Status: | Work in progress |
|---|---|
| Proposed branch: | ~nrezinorn/cloud-init:fix_systemd_hostname |
| Merge into: | cloud-init:master |
| Diff against target: |
17 lines (+3/-3) 1 file modified
cloudinit/distros/rhel.py (+3/-3) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Server Team CI bot | continuous-integration | Needs Fixing on 2017-03-06 | |
| Scott Moser | Needs Information on 2016-10-20 | ||
| Joshua Harlow | 2016-09-22 | Approve on 2016-10-07 | |
|
Review via email:
|
|||
Description of the Change
cloud-init was not properly running hostnamectl on first boot. this fixes the systemd handling logic and works :)
| Scott Moser (smoser) wrote : | # |
also, please "set commit message" with a overall change message , and a line at the end with:
LP: #1424710
FAILED: Continuous integration, rev:bd571d69c11
https:/
Executed test runs:
SUCCESS: https:/
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
| Scott Moser (smoser) wrote : | # |
Hi,
I've moved this to work in progress. Please respond to the question above and move back to 'Needs Review'. Thanks.
Scott
Unmerged commits
- bd571d6... by Jim Gorz <email address hidden> on 2016-09-22


It seems to me that we should not be calling
['hostnamectl', 'set-hostname', str(hostname)]
from _write_hostname at all
but rather from _apply_hostname.
Can you please test a change made where we drop the call to hostnamectl here, and instead do it in _apply_hostname ?