Skip to content

Instantly share code, notes, and snippets.

View fujin's full-sized avatar

AJ Christensen fujin

  • Rotorua, New Zealand
View GitHub Profile
@fujin
fujin / -
Created August 28, 2015 07:32
[aj@endpoint1df988a3]~% sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2015-08-28 07:29:31 +0000
NoMethodError: service[cloud-config.service] (pantheon::cloud_init line 15) had an error: NoMethodError: undefined method `+' for false:FalseClass
/opt/chef/embedded/apps/chef/lib/chef/platform/service_helpers.rb:134:in `platform_has_systemd_unit?'
/opt/chef/embedded/apps/chef/lib/chef/platform/service_helpers.rb:98:in `config_for_service'
/opt/chef/embedded/apps/chef/lib/chef/provider/service/redhat.rb:36:in `supports?'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `block in supported_handlers'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `select'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `supported_handlers'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:91:in `prioritized_handlers'
@fujin
fujin / -
Created August 26, 2015 21:38
[aj@consul88d3cc8e]~% curl https://gist.githubusercontent.com/fujin/de906a474ab5b451d218/raw/cf984f3264a91887830e672eb3d4e35abf507c4e/chef-upgrade.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 435 100 435 0 0 810 0 --:--:-- --:--:-- --:--:-- 810
Loaded plugins: fastestmirror, priorities, versionlock
pantheon_internal/x86_64/signature | 836 B 00:00:00
pantheon_internal/x86_64/signature | 1.0 kB 00:00:00 !!!
pantheon_internal_/x86_64/signature
@fujin
fujin / -
Created August 24, 2015 23:05
[aj@joe-onebox-f22-3]~/infrastructure% git fetch && git reset --hard FETCH_HEAD
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From github.com:pantheon-systems/infrastructure
+ 3881ebf...50a9cdc bump-onebox-to-crazy-shit -> origin/bump-onebox-to-crazy-shit (forced update)
HEAD is now at 50a9cdc Point onebox to pki fixes
[aj@joe-onebox-f22-3]~/infrastructure% sudo chef-solo -c substrate.rb -o recipe\[onebox\]
Starting Chef Client, version 12.4.1
@fujin
fujin / -
Created August 20, 2015 23:40
openstack: [2015-08-20T23:36:36+00:00] INFO: template[/usr/share/tomcat/.jenkins/jobs/restart_dead_executors/config.xml] sending run_once action to jenkins_api[reload] (delayed)
openstack: [2015-08-20T23:36:36+00:00] INFO: Processing jenkins_api[reload] action run_once (/opt/pantheon/infrastructure/cookbooks/jenkins/providers/job.rb line 32)
openstack: [2015-08-20T23:36:36+00:00] INFO: Retrying execution of jenkins_api[reload], 1 attempt(s) left
openstack: [2015-08-20T23:37:36+00:00] INFO: Retrying execution of jenkins_api[reload], 0 attempt(s) left
openstack:
openstack: ================================================================================
openstack: Error executing action `run_once` on resource 'jenkins_api[reload]'
openstack: ================================================================================
openstack:
openstack: NameError
@fujin
fujin / -
Created August 20, 2015 22:59
virtualbox-iso: [2015-08-20T22:53:15+00:00] INFO: Processing cookbook_file[/etc/pantheon/job-worker.crt] action create (pantheon::group_keys line 11)
virtualbox-iso: [2015-08-20T22:53:15+00:00] INFO: Processing hostsfile_entry[v4-pub] action create (pantheon_hostsfile::default line 36)
virtualbox-iso: [2015-08-20T22:53:15+00:00] INFO: Processing hostsfile_entry[v4_private] action create (pantheon_hostsfile::default line 46)
virtualbox-iso: [2015-08-20T22:53:15+00:00] INFO: Processing hostsfile_entry[v4_private-and-public] action create (pantheon_hostsfile::default line 56)
virtualbox-iso:
virtualbox-iso: ================================================================================
virtualbox-iso: Error executing action `create` on resource 'hostsfile_entry[v4_private-and-public]'
virtualbox-iso: ================================================================================
virtualbox-iso:
virtualbox-iso: IPAddr::InvalidAddressError
@fujin
fujin / -
Created August 20, 2015 22:11
virtualbox-iso: Removing existing VirtualBox non-DKMS kernel modules[ OK ]
virtualbox-iso: Building the VirtualBox Guest Additions kernel modules
virtualbox-iso: Building the main Guest Additions module[ OK ]
virtualbox-iso: Building the shared folder support module[ OK ]
virtualbox-iso: Building the OpenGL support module[ OK ]
virtualbox-iso: Doing non-kernel setup of the Guest Additions[ OK ]
virtualbox-iso: Starting the VirtualBox Guest Additions [ OK ]
@fujin
fujin / -
Created August 20, 2015 21:39
[root@localhost pantheon]# date
Fri Aug 21 21:31:02 UTC 2015
[root@localhost pantheon]# date
Fri Aug 21 21:32:17 UTC 2015
[root@localhost pantheon]# date^C
[root@localhost pantheon]# ls -latr
total 264
-rw-r--r--. 1 root root 2500 Aug 20 21:37 internal.crt
-rw-r--r--. 1 root root 3932 Aug 20 21:37 helios_and_internal.crt
-rw-r--r--. 1 root root 755 Aug 20 21:37 ca.crl
@fujin
fujin / -
Created August 18, 2015 20:34
✘ aj@zeta  ~  dig cname2.pantheondnstestdomain.com. @ns-19.awsdns-02.com.
; <<>> DiG 9.10.2-P3 <<>> cname2.pantheondnstestdomain.com. @ns-19.awsdns-02.com.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36453
;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 4, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
@fujin
fujin / -
Created August 18, 2015 02:21
[root@localhost ~]# openssl x509 -in /etc/pantheon/servlet.pem -text
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
6b:6a:48:43:b5:2f:4f:a3:c8:9f:d1:6b:b5:cc:16:20:e3:91:27:6a
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=US, ST=California, L=San Francisco, O=Pantheon Systems, Inc., OU=titan, CN=pki.onebox.getpantheon.com
Validity
Not Before: Aug 19 02:15:11 2015 GMT
@fujin
fujin / -
Created August 17, 2015 22:40
[2015-08-18T10:40:42+00:00] INFO: Forking chef instance to converge...
[2015-08-18T10:40:42+00:00] DEBUG: Fork successful. Waiting for new chef pid: 2774
[2015-08-18T10:40:42+00:00] DEBUG: Forked instance now converging
Starting Chef Client, version 12.4.1
[2015-08-18T10:40:42+00:00] INFO: *** Chef 12.4.1 ***
[2015-08-18T10:40:42+00:00] INFO: Chef-client pid: 2774
[2015-08-18T10:40:42+00:00] DEBUG: Chef-client request_id: 5e23312e-2340-43cc-8949-64c60947af92
[2015-08-18T10:40:43+00:00] DEBUG: Building node object for default-pantheon-basebox-fedora-22
[2015-08-18T10:40:43+00:00] DEBUG: Extracting run list from JSON attributes provided on command line
[2015-08-18T10:40:43+00:00] INFO: Setting the run_list to ["recipe[python]"] from CLI options