OS-4506: lxbrand preserve /proc//cmdline format

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2015-07-14T09:58:09.000Z
Updated at:2019-08-14T12:40:53.619Z

People

Created by:Former user
Reported by:Former user
Assigned to:Former user

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2015-08-17T20:13:44.000Z)

Fix Versions

2015-08-20 Vasa (Release Date: 2015-08-20)

Related Issues

Labels

lxbrand

Description

Ubuntu 14.04 certified:

root@48663c5b-e4d0-62f3-ae44-cc6b8014d4a2:~# ruby test.rb &
[1] 1696
root@48663c5b-e4d0-62f3-ae44-cc6b8014d4a2:~# cat /proc/1696/cmdline | tr '\000' '\n'
ruby
test.rb

Ubuntu 14.04 in LX zone:

root@674dd9a3-b9bc-c8a4-b9d9-968c6dac7d03:~# ruby test.sh &
[1] 88219
root@674dd9a3-b9bc-c8a4-b9d9-968c6dac7d03:~# cat /proc/88219/cmdline | tr '\000' '\n'
ruby

Interestingly, they both behave as expected when tested with Perl or Bash called in the same way.

Comments

Comment by Former user
Created at 2015-07-14T21:41:07.000Z

This appears to be occurring due to ruby manipulating the argv array during runtime. LX currently walks argv to construct /proc/<pid>/cmdline unlike Linux, which stores start/end pointers for argv contents.


Comment by Richard Bradley
Created at 2015-07-17T10:16:46.000Z

I'm trying to understand this ticket in Andrew's absence.

Patrick, I'm not sure if you've got access to the above test.rb and test.sh scripts/machines, and based on your recent comment it looks like you've already got the information you need here, but if you need me to help out at all here then let me know.


Comment by Former user
Created at 2015-07-17T18:43:31.000Z

Are there customers being negatively impacted by this, or is it simply an observed delta between LX and Linux?


Comment by Richard Bradley
Created at 2015-07-17T18:56:00.000Z
Updated at 2015-08-10T21:37:40.000Z

The customer here has reported this when attempting to get their Chef scripts to run on lx.

According to the customer, this is a blocker in their attempts to move from KVM Ubuntu to lx, which they're eager to do.

I'm not certain if this is an issue with Chef itself, or some part of their Chef cookbooks. I can find this out if it helps.


Comment by Former user
Created at 2015-07-17T18:59:38.000Z

Specifics aren't needed. Thanks


Comment by Richard Bradley
Created at 2015-08-10T10:04:52.000Z

Is there an update that I can provide to the customer in this case?


Comment by Former user
Created at 2015-08-11T19:17:58.000Z

I have authored a fix. It is going through review now.


Comment by Former user
Created at 2015-08-17T20:12:51.000Z

illumos-joyent commit fcbca77 (branch master, by Patrick Mooney)

OS-4506 lxbrand preserve /proc/<pid>/cmdline format
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>