Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-601

Add Mac agent donated by maccloud.me

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I sent Tyler the connection/creds info offline.

        Attachments

          Issue Links

            Activity

            Hide
            rtyler R. Tyler Croy added a comment -

            Another module bites the dust

            sh-3.2# puppet agent -t --verbose --noop --environment galapagos
            Info: Using configured environment 'galapagos'
            Info: Retrieving pluginfacts
            Info: Retrieving plugin
            Info: Loading facts
            Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/portage.rb: cannot load such file -- facter/util/resolution
            Error: Facter: error while resolving custom fact "git_version": undefined method `strip' for nil:NilClass
            Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Unsupported OS family: Darwin at /etc/puppetlabs/code/environments/galapagos/modules/ruby/manifests/params.pp:67:7 on node tomato
            Warning: Not using cache on failed catalog
            Error: Could not retrieve catalog; skipping run
            sh-3.2# 
            
            Show
            rtyler R. Tyler Croy added a comment - Another module bites the dust sh-3.2# puppet agent -t --verbose --noop --environment galapagos Info: Using configured environment 'galapagos' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/portage.rb: cannot load such file -- facter/util/resolution Error: Facter: error while resolving custom fact "git_version" : undefined method `strip' for nil:NilClass Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Unsupported OS family: Darwin at /etc/puppetlabs/code/environments/galapagos/modules/ruby/manifests/params.pp:67:7 on node tomato Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run sh-3.2#
            Hide
            rtyler R. Tyler Croy added a comment -

            Hot dog, I've got a change that at least appears to provision some accounts including the build node one

            sh-3.2# puppet agent -t --verbose --noop --environment galapagos
            Info: Using configured environment 'galapagos'
            Info: Retrieving pluginfacts
            Info: Retrieving plugin
            Info: Loading facts
            Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/portage.rb: cannot load such file -- facter/util/resolution
            Error: Facter: error while resolving custom fact "git_version": undefined method `strip' for nil:NilClass
            Info: Applying configuration version '1460135475'
            Notice: /Stage[main]/Git/Package[git]/ensure: current_value absent, should be present (noop)
            Notice: Class[Git]: Would have triggered 'refresh' from 1 events
            Notice: /Stage[main]/Profile::Buildslave/Sshkey[github-rsa]/ensure: current_value absent, should be present (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[tyler]/User[tyler]/password: current_value [old password hash redacted], should be [new password hash redacted] (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[tyler]/User[tyler]/groups: current_value , should be atlassian-admins,sudo (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[tyler]/File[tyler_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[tyler]/File[tyler_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[tyler]/Ssh_authorized_key[tyler-kiwi]/ensure: current_value absent, should be present (noop)
            Notice: Account[tyler]: Would have triggered 'refresh' from 5 events
            Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/User[kohsuke]/password: current_value [old password hash redacted], should be [new password hash redacted] (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/User[kohsuke]/groups: current_value , should be atlassian-admins,sudo (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/File[kohsuke_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/File[kohsuke_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/Ssh_authorized_key[kohsuke-giffon]/ensure: current_value absent, should be present (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/Ssh_authorized_key[kohsuke-sol]/ensure: current_value absent, should be present (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/Ssh_authorized_key[kohsuke-cucumber]/ensure: current_value absent, should be present (noop)
            Notice: Account[kohsuke]: Would have triggered 'refresh' from 7 events
            Notice: /Stage[main]/Profile::Accounts/Account[abayer]/User[abayer]/password: current_value [old password hash redacted], should be [new password hash redacted] (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[abayer]/User[abayer]/groups: current_value , should be atlassian-admins,sudo (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[abayer]/File[abayer_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[abayer]/File[abayer_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[abayer]/Ssh_authorized_key[abayer-abayer_laptop]/ensure: current_value absent, should be present (noop)
            Notice: Account[abayer]: Would have triggered 'refresh' from 5 events
            Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/User[danielbeck]/password: current_value [old password hash redacted], should be [new password hash redacted] (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/User[danielbeck]/groups: current_value , should be atlassian-admins,sudo (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/File[danielbeck_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/File[danielbeck_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/Ssh_authorized_key[danielbeck-danielbeck]/ensure: current_value absent, should be present (noop)
            Notice: Account[danielbeck]: Would have triggered 'refresh' from 5 events
            Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/User[aheritier]/password: current_value [old password hash redacted], should be [new password hash redacted] (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/User[aheritier]/groups: current_value , should be atlassian-admins,sudo (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/File[aheritier_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/File[aheritier_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/Ssh_authorized_key[aheritier-aheritier]/ensure: current_value absent, should be present (noop)
            Notice: Account[aheritier]: Would have triggered 'refresh' from 5 events
            Notice: /Stage[main]/Profile::Accounts/Account[orrc]/User[orrc]/password: current_value [old password hash redacted], should be [new password hash redacted] (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[orrc]/User[orrc]/groups: current_value , should be atlassian-admins (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[orrc]/File[orrc_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[orrc]/File[orrc_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[orrc]/Ssh_authorized_key[orrc-rebigulator]/ensure: current_value absent, should be present (noop)
            Notice: Account[orrc]: Would have triggered 'refresh' from 5 events
            Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/User[lshatzer]/password: current_value [old password hash redacted], should be [new password hash redacted] (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/User[lshatzer]/groups: current_value , should be atlassian-admins (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/File[lshatzer_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/File[lshatzer_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/Ssh_authorized_key[lshatzer-lshatzer]/ensure: current_value absent, should be present (noop)
            Notice: Account[lshatzer]: Would have triggered 'refresh' from 5 events
            Notice: Class[Profile::Accounts]: Would have triggered 'refresh' from 7 events
            Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/Group[jenkins]/ensure: current_value absent, should be present (noop)
            Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/User[jenkins]/ensure: current_value absent, should be present (noop)
            Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/File[jenkins_home]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/File[jenkins_sshdir]/ensure: current_value absent, should be directory (noop)
            Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/Ssh_authorized_key[jenkins-cucumber]/ensure: current_value absent, should be present (noop)
            Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/Ssh_authorized_key[jenkins-celery]/ensure: current_value absent, should be present (noop)
            Notice: Account[jenkins]: Would have triggered 'refresh' from 6 events
            Notice: /Stage[main]/Profile::Buildslave/File[/home/jenkins/.ssh/id_rsa]/ensure: current_value absent, should be file (noop)
            Notice: Class[Profile::Buildslave]: Would have triggered 'refresh' from 3 events
            Notice: Stage[main]: Would have triggered 'refresh' from 3 events
            Notice: Applied catalog in 10.28 seconds
            sh-3.2# 
            
            Show
            rtyler R. Tyler Croy added a comment - Hot dog, I've got a change that at least appears to provision some accounts including the build node one sh-3.2# puppet agent -t --verbose --noop --environment galapagos Info: Using configured environment 'galapagos' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/portage.rb: cannot load such file -- facter/util/resolution Error: Facter: error while resolving custom fact "git_version" : undefined method `strip' for nil:NilClass Info: Applying configuration version '1460135475' Notice: /Stage[main]/Git/Package[git]/ensure: current_value absent, should be present (noop) Notice: Class [Git]: Would have triggered 'refresh' from 1 events Notice: /Stage[main]/Profile::Buildslave/Sshkey[github-rsa]/ensure: current_value absent, should be present (noop) Notice: /Stage[main]/Profile::Accounts/Account[tyler]/User[tyler]/password: current_value [old password hash redacted], should be [ new password hash redacted] (noop) Notice: /Stage[main]/Profile::Accounts/Account[tyler]/User[tyler]/groups: current_value , should be atlassian-admins,sudo (noop) Notice: /Stage[main]/Profile::Accounts/Account[tyler]/File[tyler_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[tyler]/File[tyler_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[tyler]/Ssh_authorized_key[tyler-kiwi]/ensure: current_value absent, should be present (noop) Notice: Account[tyler]: Would have triggered 'refresh' from 5 events Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/User[kohsuke]/password: current_value [old password hash redacted], should be [ new password hash redacted] (noop) Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/User[kohsuke]/groups: current_value , should be atlassian-admins,sudo (noop) Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/File[kohsuke_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/File[kohsuke_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/Ssh_authorized_key[kohsuke-giffon]/ensure: current_value absent, should be present (noop) Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/Ssh_authorized_key[kohsuke-sol]/ensure: current_value absent, should be present (noop) Notice: /Stage[main]/Profile::Accounts/Account[kohsuke]/Ssh_authorized_key[kohsuke-cucumber]/ensure: current_value absent, should be present (noop) Notice: Account[kohsuke]: Would have triggered 'refresh' from 7 events Notice: /Stage[main]/Profile::Accounts/Account[abayer]/User[abayer]/password: current_value [old password hash redacted], should be [ new password hash redacted] (noop) Notice: /Stage[main]/Profile::Accounts/Account[abayer]/User[abayer]/groups: current_value , should be atlassian-admins,sudo (noop) Notice: /Stage[main]/Profile::Accounts/Account[abayer]/File[abayer_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[abayer]/File[abayer_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[abayer]/Ssh_authorized_key[abayer-abayer_laptop]/ensure: current_value absent, should be present (noop) Notice: Account[abayer]: Would have triggered 'refresh' from 5 events Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/User[danielbeck]/password: current_value [old password hash redacted], should be [ new password hash redacted] (noop) Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/User[danielbeck]/groups: current_value , should be atlassian-admins,sudo (noop) Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/File[danielbeck_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/File[danielbeck_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[danielbeck]/Ssh_authorized_key[danielbeck-danielbeck]/ensure: current_value absent, should be present (noop) Notice: Account[danielbeck]: Would have triggered 'refresh' from 5 events Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/User[aheritier]/password: current_value [old password hash redacted], should be [ new password hash redacted] (noop) Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/User[aheritier]/groups: current_value , should be atlassian-admins,sudo (noop) Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/File[aheritier_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/File[aheritier_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[aheritier]/Ssh_authorized_key[aheritier-aheritier]/ensure: current_value absent, should be present (noop) Notice: Account[aheritier]: Would have triggered 'refresh' from 5 events Notice: /Stage[main]/Profile::Accounts/Account[orrc]/User[orrc]/password: current_value [old password hash redacted], should be [ new password hash redacted] (noop) Notice: /Stage[main]/Profile::Accounts/Account[orrc]/User[orrc]/groups: current_value , should be atlassian-admins (noop) Notice: /Stage[main]/Profile::Accounts/Account[orrc]/File[orrc_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[orrc]/File[orrc_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[orrc]/Ssh_authorized_key[orrc-rebigulator]/ensure: current_value absent, should be present (noop) Notice: Account[orrc]: Would have triggered 'refresh' from 5 events Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/User[lshatzer]/password: current_value [old password hash redacted], should be [ new password hash redacted] (noop) Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/User[lshatzer]/groups: current_value , should be atlassian-admins (noop) Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/File[lshatzer_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/File[lshatzer_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Accounts/Account[lshatzer]/Ssh_authorized_key[lshatzer-lshatzer]/ensure: current_value absent, should be present (noop) Notice: Account[lshatzer]: Would have triggered 'refresh' from 5 events Notice: Class [Profile::Accounts]: Would have triggered 'refresh' from 7 events Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/Group[jenkins]/ensure: current_value absent, should be present (noop) Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/User[jenkins]/ensure: current_value absent, should be present (noop) Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/File[jenkins_home]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/File[jenkins_sshdir]/ensure: current_value absent, should be directory (noop) Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/Ssh_authorized_key[jenkins-cucumber]/ensure: current_value absent, should be present (noop) Notice: /Stage[main]/Profile::Buildslave/Account[jenkins]/Ssh_authorized_key[jenkins-celery]/ensure: current_value absent, should be present (noop) Notice: Account[jenkins]: Would have triggered 'refresh' from 6 events Notice: /Stage[main]/Profile::Buildslave/File[/home/jenkins/.ssh/id_rsa]/ensure: current_value absent, should be file (noop) Notice: Class [Profile::Buildslave]: Would have triggered 'refresh' from 3 events Notice: Stage[main]: Would have triggered 'refresh' from 3 events Notice: Applied catalog in 10.28 seconds sh-3.2#
            Hide
            rtyler R. Tyler Croy added a comment -

            Okie doke, the profile::buildslave class fits mostly inside the role::buildnode::mac, the two things blocking us from being able to provision this node to a modicum of functionality:

            • puppet-account needs to generate an appropriate password hash for OS X users
            • A DMG source should be provided for the git class (Error: /Stage[main]/Git/Package[git]/ensure: change from absent to present failed: Mac OS X PKG DMG's must specify a package source.) or something like it so we can at least have Git running around.
            Show
            rtyler R. Tyler Croy added a comment - Okie doke, the profile::buildslave class fits mostly inside the role::buildnode::mac , the two things blocking us from being able to provision this node to a modicum of functionality: puppet-account needs to generate an appropriate password hash for OS X users A DMG source should be provided for the git class ( Error: /Stage [main] /Git/Package [git] /ensure: change from absent to present failed: Mac OS X PKG DMG's must specify a package source. ) or something like it so we can at least have Git running around.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: R. Tyler Croy
            Path:
            dist/profile/manifests/buildslave.pp
            dist/role/manifests/buildnode.pp
            dist/role/manifests/buildnode/mac.pp
            manifests/site.pp
            spec/classes/profile/buildslave_spec.rb
            spec/classes/role/buildnode/mac_spec.rb
            spec/classes/role/buildnode_spec.rb
            http://jenkins-ci.org/commit/jenkins-infra/a1006fac4135e0bdad83649a03909489ba6a4c98
            Log:
            Introduce a Mac buildnode role.

            This is the first role that doesn't have a vegetable associated with it. As we
            move towards more of a cloud-based infrastructure, our roles need to slowly
            morph into the roles for a node instead of our "pet" machines we have right now.

            This commit makes provisioning Docker on a profile::buildslave optional, since
            Mac OS X is not going to run docker.

            [FIX INFRA-601]

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: R. Tyler Croy Path: dist/profile/manifests/buildslave.pp dist/role/manifests/buildnode.pp dist/role/manifests/buildnode/mac.pp manifests/site.pp spec/classes/profile/buildslave_spec.rb spec/classes/role/buildnode/mac_spec.rb spec/classes/role/buildnode_spec.rb http://jenkins-ci.org/commit/jenkins-infra/a1006fac4135e0bdad83649a03909489ba6a4c98 Log: Introduce a Mac buildnode role. This is the first role that doesn't have a vegetable associated with it. As we move towards more of a cloud-based infrastructure, our roles need to slowly morph into the roles for a node instead of our "pet" machines we have right now. This commit makes provisioning Docker on a profile::buildslave optional, since Mac OS X is not going to run docker. [FIX INFRA-601]
            Hide
            olblak Olivier Vernin added a comment -

            Not relevant anymore

            Show
            olblak Olivier Vernin added a comment - Not relevant anymore

              People

              Assignee:
              rtyler R. Tyler Croy
              Reporter:
              abayer Andrew Bayer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: