Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2675

bootstrap fails, on fedora26

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Lowest
    • Resolution: Unresolved
    • Affects Version/s: 3.7.5, 3.10.1, 3.12.1
    • Fix Version/s: None
    • Component/s: Bootstrap
    • Labels:
      None
    • Environment:

      Description

      Installing cfengine-community on fedora26 fails to require a dependency on {{glibc-nss-devel }}.

      Next, sometimes the bootstrap fails because there are no keys from cf-key. It probably would not take much to add a dependency in the src.rpm for Fedora > 26. Below, show a session installing cfengine-community, and the errors/warnings from bootstrap.

      Workaround

      Until we release a package compatible for RedHat 8+ the suggestion is to install the necessary dependency.

      • fedora 29 : dnf install nss_nis

      If the dependency is installed after the agent, then ppkeys likely need to be generated manually by running cf-key OR by re-installing the cfengine package.

      Diagnostic Data related to cfengine-community-3.10.1-1.x86_64.rpm

      [root@zul ~]# cf-agent --bootstrap zul
      cf-agent: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      -- cfengine-community-3.7.5-1.x86_64.rpm
      [root@zul down]# dnf install cfengine-community-3.7.5-1.x86_64.rpm
      Last metadata expiration check: 1:50:41 ago on Wed 12 Jul 2017 08:54:00 AM CDT.
      Dependencies resolved.
      ================================================================================
       Package                  Arch         Version         Repository          Size
      ================================================================================
      Installing:
       cfengine-community       x86_64       3.7.5-1         @commandline       8.0 M
      
      Transaction Summary
      ================================================================================
      Install  1 Package
      
      Total size: 8.0 M
      Installed size: 24 M
      Is this ok [y/N]: y
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
        Preparing        :                                                        1/1 
        Running scriptlet: cfengine-community-3.7.5-1.x86_64                      1/1 
        Installing       : cfengine-community-3.7.5-1.x86_64                      1/1 
        Running scriptlet: cfengine-community-3.7.5-1.x86_64                      1/1 
      /var/cfengine/bin/cf-key: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-promises: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-agent: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-promises: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-key: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-execd: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-serverd: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-monitord: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
      /var/cfengine/bin/cf-runagent: error while loading shared libraries: libnss_nis.so.2: cannot open shared object file: No such file or directory
        Verifying        : cfengine-community-3.7.5-1.x86_64                      1/1 
      abort: path contains illegal component: .hg/undo.backup.dirstate
      abort: path contains illegal component: .hg/undo.dirstate
      
      Installed:
        cfengine-community.x86_64 3.7.5-1                                             
      
      Complete!
      =-=[root@zul down]# dnf install glibc-nss-devel nss_db nss_hesiod nss_nis
      Last metadata expiration check: 1:52:01 ago on Wed 12 Jul 2017 08:54:00 AM CDT.
      Dependencies resolved.
      ================================================================================
       Package                Arch          Version              Repository      Size
      ================================================================================
      Installing:
       glibc-nss-devel        x86_64        2.25-7.fc26          updates         39 k
      Installing dependencies:
       nss_db                 x86_64        2.25-7.fc26          updates         48 k
       nss_hesiod             x86_64        2.25-7.fc26          updates         51 k
       nss_nis                x86_64        2.25-7.fc26          updates         93 k
      
      Transaction Summary
      ================================================================================
      Install  4 Packages
      
      Total download size: 232 k
      Installed size: 236 k
      Is this ok [y/N]: y
      Downloading Packages:
      (1/4): glibc-nss-devel-2.25-7.fc26.x86_64.rpm   169 kB/s |  39 kB     00:00    
      (2/4): nss_db-2.25-7.fc26.x86_64.rpm            155 kB/s |  48 kB     00:00    
      (3/4): nss_hesiod-2.25-7.fc26.x86_64.rpm        164 kB/s |  51 kB     00:00    
      (4/4): nss_nis-2.25-7.fc26.x86_64.rpm           434 kB/s |  93 kB     00:00    
      --------------------------------------------------------------------------------
      Total                                           298 kB/s | 232 kB     00:00     
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
        Preparing        :                                                        1/1 
        Installing       : nss_nis-2.25-7.fc26.x86_64                             1/4 
        Installing       : nss_hesiod-2.25-7.fc26.x86_64                          2/4 
        Installing       : nss_db-2.25-7.fc26.x86_64                              3/4 
        Installing       : glibc-nss-devel-2.25-7.fc26.x86_64                     4/4 
        Verifying        : glibc-nss-devel-2.25-7.fc26.x86_64                     1/4 
        Verifying        : nss_db-2.25-7.fc26.x86_64                              2/4 
        Verifying        : nss_hesiod-2.25-7.fc26.x86_64                          3/4 
        Verifying        : nss_nis-2.25-7.fc26.x86_64                             4/4 
      
      Installed:
        glibc-nss-devel.x86_64 2.25-7.fc26         nss_db.x86_64 2.25-7.fc26         
        nss_hesiod.x86_64 2.25-7.fc26              nss_nis.x86_64 2.25-7.fc26        
      
      Complete!
      [root@zul down]# cf-agent --bootstrap zul
      R: No public/private key pair is loaded, please create one by running "cf-key"
         error: Fatal CFEngine error: cf-agent aborted on defined class 'no_ppkeys_ABORT'
      [root@zul down]# systemctl stop firewalld
      [root@zul donmoore]# systemctl restart cfengine3.service 
      [root@zul down]# cf-agent --bootstrap zul
      R: Bootstrapping from host '10.202.40.26' via built-in policy '/var/cfengine/inputs/failsafe.cf'
      R: This host assumes the role of policy server
      R: Updated local policy from policy server
      R: Restarted systemd unit cfengine3
         error: Bootstrapping failed, cf-execd is not running
      [root@zul down]# cf-agent --bootstrap zul
      R: Bootstrapping from host '10.202.40.26' via built-in policy '/var/cfengine/inputs/failsafe.cf'
      R: This host assumes the role of policy server
      R: Updated local policy from policy server
      R: Restarted systemd unit cfengine3
        notice: Bootstrap to 'zul' completed successfully!
      --
      

      comment: I can't find the src.rpm for cfengine-community, to provide fix (There is no src.rpm, but our buildscripts related to community can be found here https://github.com/cfengine/buildscripts/blob/master/packaging/cfengine-community/cfengine-community.spec.in)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              donmoore Don Moore
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel