Merge lp:~daniel-thewatkins/cloud-init/smartos-v2-metadata into lp:~cloud-init-dev/cloud-init/trunk
| Status: | Merged |
|---|---|
| Merged at revision: | 1085 |
| Proposed branch: | lp:~daniel-thewatkins/cloud-init/smartos-v2-metadata |
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
| Diff against target: |
414 lines (+241/-90) 2 files modified
cloudinit/sources/DataSourceSmartOS.py (+69/-21) tests/unittests/test_datasource/test_smartos.py (+172/-69) |
| To merge this branch: | bzr merge lp:~daniel-thewatkins/cloud-init/smartos-v2-metadata |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| cloud-init commiters | 2015-03-04 | Pending | |
|
Review via email:
|
|||
Description of the Change
Update SmartOS data source to use v2 metadata.
This has been tested on Joyent and appears to work.
- 1074. By Scott Moser on 2015-03-04
-
pull in 'snappy' support
This allows config to disable some of the config modules that were
failing and logging WARN on snapy. Also adds the snappy module
and changes the syslog perms to take a list of user:groups rather
than just a single. - 1075. By Scott Moser on 2015-03-04
-
Add util.message_
from_string to wrap email.message_ from_string. This is to work-around the fact that email.message_
from_string uses
cStringIO in Python 2.6, which can't handle Unicode. - 1076. By Scott Moser on 2015-03-04
-
Fix hang caused by HTTPretty on Python 3.4.2.
HTTPretty can causes hangs on Python 3.4.2 (and maybe Python 3.4.1), due
to a Python bug (fixed in Python 3.4.3). This works around the problem
in the appropriate Python versions.See https:/
/github. com/gabrielfalc ao/HTTPretty/ pull/193 and
https://github. com/gabrielfalc ao/HTTPretty/ issues/ 221 for details. - 1077. By Scott Moser on 2015-03-05
-
DataSourceMAAS: adjust local timestamp in case of clock skew
This functionality has been introduced to fix LP: #978127, but was lost
while migrating cloud-init to python3. - 1078. By Scott Moser on 2015-03-05
-
snappy: disable by default
this does 2 things actually
a.) disables snappy by default, and adds checks to filesystem to enable it
this way it runs on snappy systems, but not on others.
b.) removes the 'render2env' that was mostly spike code. - 1079. By Scott Moser on 2015-03-10
-
DataSourceMAAS: remove debug statement
- 1080. By Scott Moser on 2015-03-10
-
DataSourceMAAS: fix timestamp error in oauthlib
oddly enough, the timestamp you pass into oauthlib must be a None
or a string. If not, raises ValueError:
Only unicode objects are escapable. Got 1426021488 of type <class 'int'> - 1081. By Oleg Strikov on 2015-03-11
-
userdata-handlers: python3-related fixes on do-not-
process- this-part path Cloud-init crashed when received multipart userdata object with
'application/octet-stream' part or some other 'application/*' part
except archived ones (x-gzip and friends). These parts are not
processed by cloud-init and result only in a message in the log.
We used some non-python3-friendly techniques while generating
this log message which was a reason for the crash.
- 1082. By Scott Moser on 2015-03-16
-
emit_upstart: fix use of undeclared variable
- 1083. By Scott Moser on 2015-03-17
-
SmartOS: fixes for python3 reading from serial device.
We were hitting exceptions when writing to the SmartOS serial console and, once
that was fixed, we were hanging permanently waiting for b"." == "." to be true.This fixes both of those issues.
- 1084. By Scott Moser on 2015-03-17
-
systemd: update config and final to run even if init jobs fail
- 1085. By Dan Watkins on 2015-03-25
-
Organise imports in test_smartos.py.
- 1086. By Dan Watkins on 2015-03-25
-
Convert DataSourceSmartOS to use v2 metadata.
- 1087. By Dan Watkins on 2015-03-25
-
Refactor tests to assume JoyentMetadataC
lient is correct. We are treating JoyentMetadataC
lient as a unit which the data source
depends on, so we mock it out instead of providing a fake implementation
of it. - 1088. By Dan Watkins on 2015-03-25
-
Add logging to JoyentMetadataC
lient. - 1089. By Dan Watkins on 2015-03-25
-
Ensure that the serial console is always closed.
- 1090. By Dan Watkins on 2015-03-25
-
Switch logging from info to debug level.
- 1091. By Dan Watkins on 2015-03-25
-
Add link to Joyent metadata specification.
- 1092. By Dan Watkins on 2015-03-25
-
Compile SmartOS line-parsing regex once.

