lp:~harlowja/cloud-init/fix-hostname-rh
- Get this branch:
- bzr branch lp:~harlowja/cloud-init/fix-hostname-rh
Branch merges
- cloud-init Commiters: Pending requested
-
Diff: 201 lines (+90/-19)6 files modifiedcloudinit/config/cc_set_hostname.py (+6/-4)
cloudinit/config/cc_update_hostname.py (+5/-3)
cloudinit/distros/__init__.py (+2/-2)
cloudinit/distros/debian.py (+2/-2)
cloudinit/distros/rhel.py (+17/-8)
tests/unittests/test_handler/test_handler_set_hostname.py (+58/-0)
Branch information
Recent revisions
- 703. By Joshua Harlow
-
Fix the case where on a redhat based system
the fully qualified domain name should end
up in /etc/sysconfig/network by passing the
fqdn to the update and set hostname methods
and using it accordingly. - 702. By Scott Moser
-
improve zsh support in tools/Z99-
cloud-locale- test.sh This change does 3 things:
* revert the fix from revno 697
* minor clean up some local variable usage and definition
* make Z99-cloud-locale- test.sh actually work when shell is zsh the last is done by detecting if this is zsh, and if so, changing the zsh
behavior for this function to emulate sh. As a result of the '-L' in
'emulate -L sh', we have no negative affect on the user's shell. - 700. By Joshua Harlow
-
test and path cleanups.
1. Remove the usage of the path.join function now that all code should
be going through the util file methods (and they can be mocked out as
needed).
2. Adjust all occurences of the above join function to either not use it
or replace it with the standard os.path.join (which can also be mocked
out as needed)
3. Fix pylint from complaining about the tests folder 'helpers.py' not
being found.
4. Add a pylintrc file that is used instead of the options hidden in the
'run_pylint' tool. - 699. By Scott Moser
-
Add a more generic package install mechansim
This splits code in apt_update_upgrade into 'apt-update-
upgrade' and
'apt-configure' and 'package-update- upgrade- install' .
The 'package-update- upgrade- install' then uses the generic distro
package mechanisms for acheiving the same goal.Also, adjusts some of the reboot backoffs and log flushing/sleeping that was
happening there. - 698. By Joshua Harlow
-
support unicode in user-data input of unknown types
Fix the case where a unknown type is seen and it has contents which are in
unicode. That caused python to blow-up when this happens since
'string-escape' doesn't work on unicode (at least in 2.6). - 696. By Scott Moser
-
use only util methods for reading/
loading/ appending/ peeking Use only util methods for reading/
loading/ appending/ peeking
at files since it is likely soon that we will add a new
way of adjusting the root of files read, also it is useful
for debugging to track what is being read/written in a central
fashion. - 695. By Scott Moser
-
Add helpers for wrapping file operations
Add a new example test that will patch utils and os
functions so that they can be 'retargeted' to a temporary
directory, which allows us the ability to run a full set
of cloud-init stages.Neat things:
1. All cloud-init code is unchanged (as long as it goes
through the utils functions for most functionality)
2. Allows for a natural way to setup a temporary directory
then patch the new directory as the new 'root' and then
run cloud-init stages and then check the contents of
what was placed as desired.Note:
This is now exposing what I think was just an issue in
./tools/run-pylint.
./tools/run-pylint ./tests/unittests/ test_filters/ test_launch_ index.py
and
./tools/run-pylint ./tests/unittests/ test_simple_ run
was always failing, but now I'm seeing errors.need to fix that. any tests that 'import helper' have issues.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~cloud-init-dev/cloud-init/trunk