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 #1

Updated by Loïc Dachary almost 9 years ago

$ ssh ovh229000 cat /etc/fstab
Warning: Permanently added 'ovh229000,167.114.229.0' (ECDSA) to the list of known hosts.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
UUID=4562ac88-f1a7-47c1-8da9-6591fef3ac48 / ext4 defaults 0 0
Actions #2

Updated by Loïc Dachary almost 9 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Loïc Dachary almost 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF