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

storage promise aborts with error after mounting promised filesystem. error: Attempting abort because mount went into a retry loop.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: To Do
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: storage
    • Labels:
      None
    • Story Points:
      1
    • Platform:
      Linux
    • Steps to reproduce:
      Manual steps provided

      Description

      Starting point: filesystem is not mounted, and is absent from /etc/fstab

      Now I run cf-agent with a storage promise to mount filesystem and update /etc/fstab (policy inline in this ticket, further down).

      What was observed: 3.5.0b2 storage promise aborts with error after mounting promised filesystem and updating fstab

      What was expected: storage promise successfully repaired (filesystem mounted and fstab updated)

      root@tashkent:/home/atsaloli/git/documentation/examples# grep mnt /etc/fstab
      root@tashkent:/home/atsaloli/git/documentation/examples# df -h |grep mnt
      root@tashkent:/home/atsaloli/git/documentation/examples# cf-agent -f ./temp.cf -KI
      2013-06-08T17:34:28-0700 info: This agent is bootstrapped to '192.168.183.208'
      2013-06-08T17:34:28-0700 info: Running full policy integrity checks
      2013-06-08T17:34:28-0700 info: /mounts/storage/'/mnt': Adding file system 'localhost:/home' seems to '/etc/fstab'
      2013-06-08T17:34:28-0700 error: Attempting abort because mount went into a retry loop.
      root@tashkent:/home/atsaloli/git/documentation/examples# grep mnt /etc/fstab
      localhost:/home /mnt nfs defaults
      root@tashkent:/home/atsaloli/git/documentation/examples# df -h |grep mnt
      localhost:/home 143G 91G 46G 67% /mnt
      root@tashkent:/home/atsaloli/git/documentation/examples# cat temp.cf

      <pre>
      body common control
      {
      bundlesequence =>

      { "mounts" }

      ;
      }

      bundle agent mounts
      {
      storage:

      "/mnt" mount => nfs("localhost","/home"); # "/mnt" is the local moint point

      1. "slogans.ui.hio.no" is the remote files system server
      2. "/home" is the path to the remote file system
        }

      ######################################################################

      body mount nfs(server,source)

      {
      mount_type => "nfs"; # Protocol type of remote file system
      mount_source => "$(source)"; # Path of remote file system
      mount_server => "$(server)"; # Name or IP of remote file system server
      #mount_options =>

      { "rw" }

      ; # List of option strings to add to the file system table ("fstab")

      edit_fstab => "true"; # True/false add or remove entries to the file system table ("fstab")
      #unmount => "true"; # True/false unmount a previously mounted filesystem
      }
      </pre>

      root@tashkent:/home/atsaloli/git/documentation/examples#

      Here is the verbose output, if you'd like it:

      <pre>
      root@tashkent:/home/atsaloli/git/documentation/examples# cf-agent -f ./temp.cf -KIv
      2013-06-08T17:37:43-0700 verbose: Work directory is /var/cfengine
      2013-06-08T17:37:43-0700 verbose: Looking for a source of entropy in '/var/cfengine/randseed'
      2013-06-08T17:37:43-0700 verbose: Making sure that locks are private...
      2013-06-08T17:37:43-0700 verbose: Checking integrity of the state database
      2013-06-08T17:37:43-0700 verbose: Checking integrity of the module directory
      2013-06-08T17:37:43-0700 verbose: Checking integrity of the PKI directory
      2013-06-08T17:37:43-0700 verbose: Loaded private key at '/var/cfengine/ppkeys/localhost.priv'
      2013-06-08T17:37:43-0700 verbose: Loaded public key '/var/cfengine/ppkeys/localhost.pub'
      2013-06-08T17:37:43-0700 verbose: Setting cfengine default port to 5308, '5308'
      2013-06-08T17:37:43-0700 verbose: Reference time set to 'Sat Jun 8 17:37:43 2013'
      2013-06-08T17:37:43-0700 verbose: CFEngine Core 3.5.0b2.785288377e1aa2a1ba45426f5baff7d96f55adb0
      2013-06-08T17:37:43-0700 verbose: Host name is: tashkent
      2013-06-08T17:37:43-0700 verbose: Operating System Type is linux
      2013-06-08T17:37:43-0700 verbose: Operating System Release is 3.5.0-30-generic
      2013-06-08T17:37:43-0700 verbose: Architecture = x86_64
      2013-06-08T17:37:43-0700 verbose: Using internal soft-class linux for host tashkent
      2013-06-08T17:37:43-0700 verbose: The time is now Sat Jun 8 17:37:43 2013
      2013-06-08T17:37:43-0700 verbose: Extended system discovery is only available in CFEngine Enterprise
      2013-06-08T17:37:43-0700 verbose: Additional hard class defined as: 64_bit
      2013-06-08T17:37:43-0700 verbose: Additional hard class defined as: linux_3_5_0_30_generic
      2013-06-08T17:37:43-0700 verbose: Additional hard class defined as: linux_x86_64
      2013-06-08T17:37:43-0700 verbose: Additional hard class defined as: linux_x86_64_3_5_0_30_generic
      2013-06-08T17:37:43-0700 verbose: GNU autoconf class from compile time: compiled_on_linux_gnu
      2013-06-08T17:37:43-0700 verbose: Address given by nameserver: 127.0.1.1
      2013-06-08T17:37:43-0700 verbose: No interface exception file /var/cfengine/inputs/ignore_interfaces.rx
      2013-06-08T17:37:43-0700 verbose: Interface 1: lo
      2013-06-08T17:37:43-0700 verbose: Interface 2: eth0
      2013-06-08T17:37:43-0700 verbose: Interface 3: eth1
      2013-06-08T17:37:43-0700 verbose: Trying to locate my IPv6 address
      2013-06-08T17:37:43-0700 verbose: Found IPv6 address fe80::72f1:a1ff:fec9:f790
      2013-06-08T17:37:43-0700 verbose: Looking for environment from cf-monitord...
      2013-06-08T17:37:43-0700 verbose: Loading environment...
      2013-06-08T17:37:43-0700 verbose: Environment data loaded
      2013-06-08T17:37:43-0700 verbose: This appears to be a debian system.
      2013-06-08T17:37:43-0700 verbose: Looking for Debian version...
      2013-06-08T17:37:43-0700 verbose: Found 4 processors
      2013-06-08T17:37:43-0700 verbose: Persistent class 'measurements:users_high_ldt' for 0 more minutes
      2013-06-08T17:37:43-0700 verbose: Adding persistent class 'measurements:users_high_ldt' to heap
      2013-06-08T17:37:43-0700 verbose: Persistent class 'measurements:rootprocs_high_ldt' for 0 more minutes
      2013-06-08T17:37:43-0700 verbose: Adding persistent class 'measurements:rootprocs_high_ldt' to heap
      2013-06-08T17:37:43-0700 verbose: Persistent class 'measurements:nfsd_in_high_ldt' for 3 more minutes
      2013-06-08T17:37:43-0700 verbose: Adding persistent class 'measurements:nfsd_in_high_ldt' to heap
      2013-06-08T17:37:43-0700 verbose: Persistent class 'measurements:syslog_high_ldt' for 3 more minutes
      2013-06-08T17:37:43-0700 verbose: Adding persistent class 'measurements:syslog_high_ldt' to heap
      2013-06-08T17:37:43-0700 verbose: Persistent class 'measurements:nfsd_out_high_ldt' for 5 more minutes
      2013-06-08T17:37:43-0700 verbose: Adding persistent class 'measurements:nfsd_out_high_ldt' to heap
      2013-06-08T17:37:43-0700 info: This agent is bootstrapped to '192.168.183.208'
      2013-06-08T17:37:43-0700 verbose: Input file is outside default repository, validating it
      2013-06-08T17:37:43-0700 verbose: Promises seem to change
      2013-06-08T17:37:43-0700 verbose: Input file is changed since last validation, validating it
      2013-06-08T17:37:43-0700 verbose: Verifying the syntax of the inputs...
      2013-06-08T17:37:43-0700 verbose: Checking policy with command '"/var/cfengine/bin/cf-promises" -c "./temp.cf"'
      2013-06-08T17:37:43-0700 verbose: Parsing file './temp.cf'
      2013-06-08T17:37:43-0700 verbose: Resolving varibales in bundle 'mounts'
      2013-06-08T17:37:43-0700 info: Running full policy integrity checks
      2013-06-08T17:37:43-0700 verbose: Discovered hard classes: 10_10_23_68 127_0_0_1 192_168_183_208 4_cpus 64_bit Afternoon Day8 GMT_Hr0 Hr17 Hr17_Q3 June Lcycle_0 Min35_40 Min37 PK_MD5_5d9ec4915c481b4eb4dc417ccd45b407 Q3 Saturday Yr2013 agent any cfengine cfengine_3 cfengine_3_5 cfengine_3_5_0b2 cfengine_3_5_0b2_785288377e1aa2a1ba45426f5baff7d96f55adb0 cfengine_in_high community_edition compiled_on_linux_gnu cpu0_high cpu1_high cpu2_high cpu3_high cpu_high debian debian_wheezy diskfree_high_normal entropy_misc_in_low entropy_misc_out_low entropy_postgresql_in_low entropy_postgresql_out_low fe80_72f1_a1ff_fec9_f790 inform_mode ipp_in_high ipv4_10 ipv4_10_10 ipv4_10_10_23 ipv4_10_10_23_68 ipv4_127 ipv4_127_0 ipv4_127_0_0 ipv4_127_0_0_1 ipv4_192 ipv4_192_168 ipv4_192_168_183 ipv4_192_168_183_208 linux linux_3_5_0_30_generic linux_x86_64 linux_x86_64_3_5_0_30_generic linux_x86_64_3_5_0_30_generic_51_Ubuntu_SMP_Tue_May_14_18_47_48_UTC_2013 loadavg_high localhost mac_70_f1_a1_c9_f7_90 mac_a4_ba_db_d7_59_32 net_iface_eth0 net_iface_eth1 net_iface_lo nfsd_in_high nfsd_in_high_ldt nfsd_out_high nfsd_out_high_ldt otherprocs_high_normal rootprocs_high_ldt rootprocs_high_normal smtp_in_high syslog_normal_dev1 tashkent tashkent_local ubuntu ubuntu_12 ubuntu_12_10 users_high users_high_ldt verbose_mode www_in_high wwws_out_high x86_64
      2013-06-08T17:37:43-0700 verbose: Additional classes: measurements:nfsd_in_high_ldt measurements:nfsd_out_high_ldt measurements:rootprocs_high_ldt measurements:syslog_high_ldt measurements:users_high_ldt
      2013-06-08T17:37:43-0700 verbose: Resolving varibales in bundle 'mounts'
      2013-06-08T17:37:43-0700 verbose: Additional class defined: am_policy_hub
      2013-06-08T17:37:43-0700 verbose: Setting session ID, becoming process group leader
      2013-06-08T17:37:43-0700 verbose: Using bundlesequence =>

      {'mounts'}

      2013-06-08T17:37:43-0700 verbose: Using literal pathtype for '/mnt'
      2013-06-08T17:37:43-0700 verbose: Verifying mounted file systems on '/mnt'
      2013-06-08T17:37:43-0700 verbose: File system '/mnt' seems not to be mounted correctly
      2013-06-08T17:37:43-0700 verbose: Verifying '/mnt' in '/etc/fstab'
      2013-06-08T17:37:43-0700 info: /mounts/storage/'/mnt': Adding file system 'localhost:/home' seems to '/etc/fstab'
      2013-06-08T17:37:43-0700 verbose: Number of changes observed in '/etc/fstab' is 1
      2013-06-08T17:37:43-0700 verbose: Mounting all filesystems
      2013-06-08T17:37:43-0700 verbose: Attempting to mount all filesystems.
      2013-06-08T17:37:44-0700 error: Attempting abort because mount went into a retry loop.
      2013-06-08T17:37:44-0700 verbose: Using literal pathtype for '/mnt'
      2013-06-08T17:37:44-0700 verbose: Number of changes observed in '/etc/fstab' is 0
      2013-06-08T17:37:44-0700 verbose: Mounting all filesystems
      2013-06-08T17:37:44-0700 verbose: Attempting to mount all filesystems.
      2013-06-08T17:37:44-0700 verbose: Using literal pathtype for '/mnt'
      2013-06-08T17:37:44-0700 verbose: Number of changes observed in '/etc/fstab' is 0
      2013-06-08T17:37:44-0700 verbose: Mounting all filesystems
      2013-06-08T17:37:44-0700 verbose: Attempting to mount all filesystems.
      2013-06-08T17:37:44-0700 verbose: Zero promises executed for bundle 'mounts'
      2013-06-08T17:37:44-0700 verbose: No lock purging scheduled
      2013-06-08T17:37:44-0700 verbose: Outcome of version '(not specified)', no checks were scheduled
      </pre>
      root@tashkent:/home/atsaloli/git/documentation/examples#

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                atsaloli Aleksey Tsalolikhin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel