Project

General

Profile

Actions

Bug #12250

closed

ansible /etc/fstab regexp fails on OpenStack instances

Added by Loïc Dachary almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

TASK: [testnode | Use perl to add user_xattr to the root mount options in fstab.] *** 
<ovh229000.teuthology> ESTABLISH CONNECTION FOR USER: ubuntu
<ovh229000.teuthology> REMOTE_MODULE command creates=/etc/fstab.bak perl -pe 'if (m{^([^#]\S*\s+/\s+\S+\s+)(\S+)(\s+.*)$}) { $_="$1\
$2,user_xattr$3\n" unless $2=~m{(^|,)user_xattr(,|$)}; }' -i.bak /etc/fstab
<ovh229000.teuthology> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/ubuntu/.ansible/cp/ansible-\
ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o Pa\
sswordAuthentication=no -o ConnectTimeout=10 ovh229000.teuthology /bin/sh -c 'sudo -k &&
2015-07-08 23:27:59,081.081 INFO:teuthology.task.ansible.out: sudo -H -S -p "[sudo via ansible, key=ucoseshfksjzgauxzlrgoaqctmzauld\
r] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ucoseshfksjzgauxzlrgoaqctmzauldr; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 \
/usr/bin/python'"'"''
failed: [ovh229000.teuthology] => {"changed": true, "cmd": ["perl", "-pe", "if (m{^([^#]\\S*\\s+/\\s+\\S+\\s+)(\\S+)(\\s+.*)$}) { $\
_=\"$1$2,user_xattr$3\\n\" unless $2=~m{(^|,)user_xattr(,|$)}; }", "-i.bak", "/etc/fstab"], "delta": "0:00:00.004719", "end": "2015\
-07-08 23:28:25.093582", "rc": 255, "start": "2015-07-08 23:28:25.088863", "warnings": []}
stderr: Unknown regexp modifier "/b" at -e line 1, at end of line
Unknown regexp modifier "/n" at -e line 1, at end of line
Execution of -e aborted due to compilation errors.

Related issues 1 (0 open1 closed)

Blocks teuthology - Feature #6502: provision targets using OpenStackResolvedLoïc Dachary10/10/2013

Actions
Actions

Also available in: Atom PDF