Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created August 8, 2016 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/4419d6dfa3c16cd2795d55ac11a89cb8 to your computer and use it in GitHub Desktop.
Save harlowja/4419d6dfa3c16cd2795d55ac11a89cb8 to your computer and use it in GitHub Desktop.
1:10:46 test_utility_methods (tests.unittests.test_vmware_config_file.TestVmwareConfigFile) ... ok
11:10:46
11:10:46 ======================================================================
11:10:46 ERROR: test_instance_level_keys_replace_project_level_keys (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 161, in test_instance_level_keys_replace_project_level_keys
11:10:46 self.assertEqual([key_content], self.ds.get_public_ssh_keys())
11:10:46 File "/home/jenkins/workspace/cloud-init-test/cloudinit/sources/DataSourceGCE.py", line 142, in get_public_ssh_keys
11:10:46 return self.metadata['public-keys']
11:10:46 KeyError: 'public-keys'
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ======================================================================
11:10:46 ERROR: test_instance_level_ssh_keys_are_used (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 151, in test_instance_level_ssh_keys_are_used
11:10:46 self.assertIn(key_content, self.ds.get_public_ssh_keys())
11:10:46 File "/home/jenkins/workspace/cloud-init-test/cloudinit/sources/DataSourceGCE.py", line 142, in get_public_ssh_keys
11:10:46 return self.metadata['public-keys']
11:10:46 KeyError: 'public-keys'
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ======================================================================
11:10:46 ERROR: test_metadata (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 99, in test_metadata
11:10:46 self.ds.get_hostname())
11:10:46 File "/home/jenkins/workspace/cloud-init-test/cloudinit/sources/DataSourceGCE.py", line 146, in get_hostname
11:10:46 return self.metadata['local-hostname'].split('.')[0]
11:10:46 KeyError: 'local-hostname'
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ======================================================================
11:10:46 ERROR: test_metadata_encoding (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 124, in test_metadata_encoding
11:10:46 self.assertEqual(decoded, self.ds.get_userdata_raw())
11:10:46 File "/home/jenkins/workspace/cloud-init-test/cloudinit/sources/DataSourceGCE.py", line 149, in get_userdata_raw
11:10:46 return self.metadata['user-data']
11:10:46 KeyError: 'user-data'
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ======================================================================
11:10:46 ERROR: test_metadata_partial (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 113, in test_metadata_partial
11:10:46 self.ds.get_instance_id())
11:10:46 File "/home/jenkins/workspace/cloud-init-test/cloudinit/sources/DataSourceGCE.py", line 139, in get_instance_id
11:10:46 return self.metadata['instance-id']
11:10:46 KeyError: 'instance-id'
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ======================================================================
11:10:46 ERROR: test_only_last_part_of_zone_used_for_availability_zone (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 166, in test_only_last_part_of_zone_used_for_availability_zone
11:10:46 self.assertEqual('bar', self.ds.availability_zone)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/cloudinit/sources/DataSourceGCE.py", line 153, in availability_zone
11:10:46 return self.metadata['availability-zone']
11:10:46 KeyError: 'availability-zone'
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ======================================================================
11:10:46 ERROR: test_project_level_ssh_keys_are_used (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 141, in test_project_level_ssh_keys_are_used
11:10:46 self.ds.get_public_ssh_keys())
11:10:46 File "/home/jenkins/workspace/cloud-init-test/cloudinit/sources/DataSourceGCE.py", line 142, in get_public_ssh_keys
11:10:46 return self.metadata['public-keys']
11:10:46 KeyError: 'public-keys'
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ======================================================================
11:10:46 FAIL: test_connection (tests.unittests.test_datasource.test_gce.TestDataSourceGCE)
11:10:46 ----------------------------------------------------------------------
11:10:46 Traceback (most recent call last):
11:10:46 File "/home/jenkins/workspace/cloud-init-test/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper
11:10:46 return test(*args, **kw)
11:10:46 File "/home/jenkins/workspace/cloud-init-test/tests/unittests/test_datasource/test_gce.py", line 88, in test_connection
11:10:46 self.assertTrue(success)
11:10:46 AssertionError: False is not true
11:10:46 -------------------- >> begin captured logging << --------------------
11:10:46 cloudinit.util: DEBUG: detected dns redirection: {'does-not-exist.example.com.': [u': does-not-exist.example.com.'], 'B9FtR9sOzfiIhxA0zDocA7zd6KJzpaSz': [u': B9FtR9sOzfiIhxA0zDocA7zd6KJzpaSz'], 'example.invalid.': [u': example.invalid.']}
11:10:46 cloudinit.url_helper: DEBUG: [0/1] open 'http://metadata.google.internal/computeMetadata/v1/instance/id' with {'url': 'http://metadata.google.internal/computeMetadata/v1/instance/id', 'headers': {'X-Google-Metadata-Request': True, 'User-Agent': 'Cloud-Init/0.7.6'}, 'allow_redirects': True, 'method': 'GET'} configuration
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: url instance/id raised exception Header value True must be of type str or bytes, not <type 'bool'>
11:10:46 cloudinit.sources.DataSourceGCE: DEBUG: required key instance-id returned nothing. not GCE
11:10:46 --------------------- >> end captured logging << ---------------------
11:10:46
11:10:46 ----------------------------------------------------------------------
11:10:46 XML: /home/jenkins/workspace/cloud-init-test/nosetests.xml
11:10:46 ----------------------------------------------------------------------
11:10:46 Ran 631 tests in 4.614s
11:10:46
11:10:46 FAILED (SKIP=28, errors=7, failures=1)
11:10:46 Build step 'Execute shell' marked build as failure
11:10:46 Recording test results
11:10:47 Notifying upstream projects of job completion
11:10:47 Email was triggered for: Failure - Any
11:10:47 Sending email for trigger: Failure - Any
11:10:47 Sending email to: cloud@godaddy.com
11:10:47 Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
11:10:47 Finished: FAILURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment