Chef infra 获取标准:用法:运行时“;山;升级到chef client 16后的命令
最近,我们将chef client从12.8.1升级到16.1.16。。将chef client从12.8.1升级到16.1.16后,出现以下错误。。为了测试,我将chef客户端恢复到12.8.1,部署在12.8.1中运行良好。升级到chef 16.1.16版本时,是否需要进行任何我缺少的代码重构Chef infra 获取标准:用法:运行时“;山;升级到chef client 16后的命令,chef-infra,Chef Infra,最近,我们将chef client从12.8.1升级到16.1.16。。将chef client从12.8.1升级到16.1.16后,出现以下错误。。为了测试,我将chef客户端恢复到12.8.1,部署在12.8.1中运行良好。升级到chef 16.1.16版本时,是否需要进行任何我缺少的代码重构 12:39:35 * mount[Mount volume /ILdata/arc_data04] action mount[2020-09-16T03:09:35-04:00] INFO:
12:39:35 * mount[Mount volume /ILdata/arc_data04] action mount[2020-09-16T03:09:35-04:00] INFO:
Processing mount[Mount volume /ILdata/arc_data04] action mount (il-nfs::client line 74)
12:39:35 [2020-09-16T03:09:36-04:00] INFO: Retrying execution of mount[Mount volume /ILdata/arc_data04],
1 attempt left
12:39:40 [2020-09-16T03:09:41-04:00] INFO: Retrying execution of mount[Mount volume /ILdata/arc_data04],
0 attempt left
12:39:45
12:39:45
12:39:45 ================================================================================
12:39:45 [31mError executing action `mount` on resource 'mount[Mount volume
/ILdata/arc_data04]'[0m
12:39:45 ================================================================================
12:39:45
12:39:45 Mixlib::ShellOut::ShellCommandFailed
12:39:45 ------------------------------------
12:39:45 Expected process to exit with [0], but received '1'
12:39:45 ---- Begin output of ["mount", "-t", "-o", "rw,_netdev,x-systemd.after=network-
online.target", "172.XX.XX.XX:/UFS_V5_NEW", "/ILdata/arc_data04"] ----
12:39:45 STDOUT:
12:39:45 STDERR: Usage:
12:39:45 mount [-lhV]
12:39:45 mount -a [options]
12:39:45 mount [options] [--source] <source> | [--target] <directory>
12:39:45 mount [options] <source> <directory>
12:39:45 mount <operation> <mountpoint> [<target>]
12:39:45
12:39:45 Options:
12:39:45 -a, --all mount all filesystems mentioned in fstab
12:39:45 -c, --no-canonicalize don't canonicalize paths
12:39:45 -f, --fake dry run; skip the mount(2) syscall
12:39:45 -F, --fork fork off for each device (use with -a)
12:39:45 -T, --fstab <path> alternative file to /etc/fstab
12:39:45 -h, --help display this help text and exit
12:39:45 -i, --internal-only don't call the mount.<type> helpers
12:39:45 -l, --show-labels lists all mounts with LABELs
12:39:45 -n, --no-mtab don't write to /etc/mtab
12:39:45 -o, --options <list> comma-separated list of mount options
12:39:45 -O, --test-opts <list> limit the set of filesystems (use with -a)
12:39:45 -r, --read-only mount the filesystem read-only (same as -o ro)
12:39:45 -t, --types <list> limit the set of filesystem types
12:39:45 --source <src> explicitly specifies source (path, label, uuid)
12:39:45 --target <target> explicitly specifies mountpoint
12:39:45 -v, --verbose say what is being done
12:39:45 -V, --version display version information and exit
12:39:45 -w, --rw, --read-write mount the filesystem read-write (default)
12:39:45
12:39:45 -h, --help display this help and exit
12:39:45 -V, --version output version information and exit
12:39:45
12:39:45 Source:
12:39:45 -L, --label <label> synonym for LABEL=<label>
12:39:45 -U, --uuid <uuid> synonym for UUID=<uuid>
12:39:45 LABEL=<label> specifies device by filesystem label
12:39:45 UUID=<uuid> specifies device by filesystem UUID
12:39:45 PARTLABEL=<label> specifies device by partition label
12:39:45 PARTUUID=<uuid> specifies device by partition UUID
12:39:45 <device> specifies device by path
12:39:45 <directory> mountpoint for bind mounts (see --bind/rbind)
12:39:45 <file> regular file for loopdev setup
12:39:45
12:39:45 Operations:
12:39:45 -B, --bind mount a subtree somewhere else (same as -o bind)
12:39:45 -M, --move move a subtree to some other place
12:39:45 -R, --rbind mount a subtree and all submounts somewhere else
12:39:45 --make-shared mark a subtree as shared
12:39:45 --make-slave mark a subtree as slave
12:39:45 --make-private mark a subtree as private
12:39:45 --make-unbindable mark a subtree as unbindable
12:39:45 --make-rshared recursively mark a whole subtree as shared
12:39:45 --make-rslave recursively mark a whole subtree as slave
12:39:45 --make-rprivate recursively mark a whole subtree as private
12:39:45 --make-runbindable recursively mark a whole subtree as unbindable
12:39:45
12:39:45 For more details see mount(8).
12:39:45 ---- End output of ["mount", "-t", "-o", "rw,_netdev,x-systemd.after=network-online.target", "172.XX.XX.XX:/UFS_V5_NEW", "/ILdata/arc_data04"] ----
12:39:45 Ran ["mount", "-t", "-o", "rw,_netdev,x-systemd.after=network-online.target", "172.XX.XX.XX:/UFS_V5_NEW", "/ILdata/arc_data04"] returned 1
12:39:45
12:39:45 Resource Declaration:
12:39:45 ---------------------
12:39:45 # In /etc/chef/local-mode-cache/cache/cookbooks/il-nfs/recipes/client.rb
12:39:45
12:39:45 74: mount "Mount volume #{cur_path_loc}" do
12:39:45 75: mount_point cur_path_loc
12:39:45 76: device cur_path_rem
12:39:45 77: fstype cur_type
12:39:45 78: options mount_options
12:39:45 79: action [ :mount, :enable ]
12:39:45 80: pass 0
12:39:45 81: retries 2
12:39:45 82: retry_delay 5
12:39:45 83: # we retry because this can occur soon after hostname and dns changes
12:39:45 84: end
12:39:45 85:
12:39:45
12:39:45 Compiled Resource:
12:39:45 ------------------
12:39:45 # Declared in /etc/chef/local-mode-cache/cache/cookbooks/il-nfs/recipes/client.rb:74:in `block in from_file'
12:39:45
12:39:45 mount("Mount volume /ILdata/arc_data04") do
12:39:45 action [:mount, :enable]
12:39:45 default_guard_interpreter :default
12:39:45 declared_type :mount
12:39:45 cookbook_name "il-nfs"
12:39:45 recipe_name "client"
12:39:45 mount_point "/ILdata/arc_data04"
12:39:45 device "172.XX.XX.XX:/UFS_V5_NEW"
12:39:45 fstype nil
12:39:45 options ["rw", "_netdev", "x-systemd.after=network-online.target"]
12:39:45 pass 0
12:39:45 retries 2
12:39:45 retry_delay 5
12:39:45 supports {:remount=>false}
12:39:45 end
12:39:45
12:39:45 System Info:
12:39:45 ------------
12:39:45 chef_version=16.1.16
12:39:45 platform=redhat
12:39:45 platform_version=7.7
12:39:45 ruby=ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
12:39:45 program_name=/bin/chef-client
12:39:45 executable=/opt/chef/bin/chef-client
12:39:35*装载[装载卷/ILdata/arc_data04]行动装载[2020-09-16T03:09:35-04:00]信息:
处理装载[装载卷/ILdata/arc_data04]操作装载(il nfs::客户端第74行)
12:39:35[2020-09-16T03:09:36-04:00]信息:正在重试执行装载[mount volume/ILdata/arc_data04],
左1次尝试
12:39:40[2020-09-16T03:09:41-04:00]信息:正在重试执行装载[mount volume/ILdata/arc_data04],
剩余0次尝试
12:39:45
12:39:45
12:39:45 ================================================================================
12:39:45[31错误执行操作“在资源上装载”装载[装载卷]
/ILdata/arc_data04]'[0m
12:39:45 ================================================================================
12:39:45
12:39:45 Mixlib::ShellOut::ShellCommandFailed
12:39:45 ------------------------------------
12:39:45预期进程将与[0]一起退出,但收到“1”
12:39:45----开始输出[“mount”、“-t”、“-o”、“rw、_netdev、x-systemd.after=network-
online.target“,”172.XX.XX.XX:/UFS_V5_NEW“,“/ILdata/arc_data04”]----
12:39:45标准时间:
12:39:45标准:用法:
12:39:45安装[-lhV]
12:39:45安装-a[选项]
12:39:45装载[选项][--source]|[--target]
12:39:45安装[选项]
12:39:45 mount[]
12:39:45
12:39:45选项:
12:39:45-a,--all挂载fstab中提到的所有文件系统
12:39:45-c,--不规范化不规范化路径
12:39:45-f,--假干运行;跳过装载(2)系统调用
12:39:45-F,--为每个装置拨叉(与-a一起使用)
12:39:45-T,--fstab/etc/fstab的替代文件
12:39:45-h,--help显示此帮助文本并退出
12:39:45-我,--只内部不呼叫坐骑。助手
12:39:45-l,--show labels列出了带有标签的所有安装件
12:39:45-n,--没有mtab不给/etc/mtab写信
12:39:45-o,--options以逗号分隔的装载选项列表
12:39:45-O,--test选项限制文件系统集(与-a一起使用)
12:39:45-r,--read-only以只读方式安装文件系统(与-o-ro相同)
12:39:45-t,--类型限制文件系统类型集
12:39:45——源显式指定源(路径、标签、uuid)
12:39:45——目标明确指定装入点
12:39:45-v,--详细说出正在做的事情
12:39:45-V,--版本显示版本信息并退出
12:39:45-w,--rw,--read-write装载文件系统读写(默认)
12:39:45
12:39:45-h,--help显示此帮助并退出
12:39:45-V,-version输出版本信息并退出
12:39:45
12:39:45来源:
12:39:45-L,--label是label的同义词=
12:39:45-U,--uuid是uuid的同义词=
12:39:45 LABEL=按文件系统标签指定设备
12:39:45 UUID=按文件系统UUID指定设备
12:39:45 PARTLABEL=按分区标签指定设备
12:39:45 PARTUUID=按分区UUID指定设备
12:39:45按路径指定设备
12:39:45绑定安装的安装点(请参见--bind/rbind)
12:39:45 loopdev安装程序的常规文件
12:39:45
12:39:45操作:
12:39:45-B,--bind在其他地方挂载子树(与-o bind相同)
12:39:45-M,--将子树移动到其他位置
12:39:45-R,--R将一个子树和所有子树装载到其他地方
12:39:45--将共享标记为共享的子树
12:39:45--使从属将子树标记为从属
12:39:45--使私有将子树标记为私有
12:39:45——将子树标记为不可绑定
12:39:45——使rshared递归地将整个子树标记为共享
12:39:45——使rslave递归地将整个子树标记为从属树
12:39:45——使rprivate递归地将整个子树标记为private
12:39:45——使runbindable递归地将整个子树标记为unbindable
12:39:45
12:39:45有关更多详细信息,请参阅mount(8)。
12:39:45----结束输出[“mount”、“-t”、“-o”、“rw、_netdev、x-systemd.after=network online.target”、“172.XX.XX.XX:/UFS_V5_NEW”、“/ILdata/arc_data04”]----
12:39:45运行[“mount”、“-t”、“-o”、“rw、_netdev、x-systemd.after=network online.target”、“172.XX.XX.XX:/UFS_V5_NEW”、“/ILdata/arc_data04”]返回1
12:39:45
12:39:45资源声明:
12:39:45 ---------------------
12:39:45 35; In/etc/chef/local mode cache/cache/cookbooks/il-nfs/recipes/client.rb
12:39:45
12:39:45 74:装载“装载卷#{cur_path_loc}”do
12:39:45 75:mount_point cur_path_loc
12:39:45 76:设备电流路径
12:39:45 77:fstype cur_type
12:39:45 78:选项安装选项
12:39:45 79:操作[:装载,:启用]
12:39:45 80:通过0
12:39:45 81:重试2次
12:39:45 82:重试\u延迟5
12:39:45 83:#我们重试,因为这可能在主机名和dns更改后不久发生
12时39分45秒84分结束
12:39:45 85:
12:39:45
12:39:45已编译资源:
12:39:45 ------------------
12:39:45#在/etc/chef/local-mode-cache/cache/cookbooks/il-nfs/recipes/cl中声明