[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-21 Thread Dimitri John Ledkov
@james-page Things started to look better I think. I have retried all the things I have spotted on the report page you pointed at, such that hopefully the new rabbitmq server will migrate... But I'm about to go EOY, so will not be able to monitor this further. -- You received this bug

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-20 Thread Frank Heimes
** Changed in: ubuntu-z-systems Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x: erlang.cookie creation fails when changing file permissions

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-20 Thread Launchpad Bug Tracker
This bug was fixed in the package erlang - 1:21.2+dfsg-1ubuntu2 --- erlang (1:21.2+dfsg-1ubuntu2) disco; urgency=medium * Apply upstream suggested patch to fix signiness of uid/gid/permission file_info values. LP: #1808984 -- Dimitri John Ledkov Thu, 20 Dec 2018 23:56:39

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-20 Thread Dimitri John Ledkov
Attempting upstream suggested https://github.com/erlang/otp/commit/df0638e021eb18a4271a02fdae08aa1779867209.patch ** Changed in: rabbitmq-server (Ubuntu) Status: New => Invalid ** Changed in: elixir-lang (Ubuntu) Status: New => Invalid ** Changed in: erlang (Ubuntu) Status:

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
Files upstream issue at https://bugs.erlang.org/browse/ERL-815 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x: erlang.cookie creation fails when changing file permissions To

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
stracing that, yields: [pid 62574] chown(".erlang.cookie", 442314011, 1047536456) = -1 EPERM (Operation not permitted) which is odd, given that owner is not changed whereas on amd64 it has [pid 14595] chown(".erlang.cookie", -1, -1 [pid 14595] <... chown resumed> ) = 0 >From code,

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
** Attachment added: "hello.erl" https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/1808984/+attachment/5223714/+files/hello.erl -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
refactored the code into a small hello.erl, and indeed file mode setting fails on s390x. without doing anything else. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x:

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
targetmilestone-inin1804 -> this affects 1904 only at the moment, the in-development Disco Dingo series. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x: erlang.cookie creation

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
Hmm... i think i'm out of ideas, cause it looks like make_info(Name) does use the right mode=8#400. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x: erlang.cookie creation fails

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
http://paste.ubuntu.com/p/GmXsSrZD7C/ To me it looks like int_to_int32bytes() wrapper got dropped around Mode, Gid, Uid. Inside the write_file_info implementation. So maybe make_info(Name) now needs to do that. Checking. -- You received this bug notification because you are a member of

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Dimitri John Ledkov
create_cookie(Name) -> Seed = abs(erlang:monotonic_time() bxor erlang:unique_integer()), Cookie = random_cookie(20, Seed, []), case file:open(Name, [write, raw]) of {ok, File} -> R1 = file:write(File, Cookie), ok = file:close(File),

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread bugproxy
** Tags added: architecture-s39064 bugnameltc-174200 severity-high targetmilestone-inin1804 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x: erlang.cookie creation fails when

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread Frank Heimes
** Changed in: ubuntu-z-systems Importance: Medium => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x: erlang.cookie creation fails when changing file permissions To

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread James Page
I think the Elixir warning is unrelated, but problem does need address; the unit test suite errors are symptomatic of the same underlying issue effecting RMQ. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread James Page
FWIW this issue is blocking migration of any python related updates in disco development: http://people.canonical.com/~ubuntu-archive/proposed- migration/update_excuses_by_team.html#ubuntu-openstack We have a number of openstack projects with autopkgtests which use rabbitmq-server which are

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread James Page
FWIW this issue is blocking migration of any python related updates in disco development: http://people.canonical.com/~ubuntu-archive/proposed- migration/update_excuses_by_team.html#ubuntu-openstack We have a number of openstack projects with autopkgtests which use rabbitmq-server which are

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-19 Thread James Page
I think the Elixir warning is unrelated, but problem does need address; the unit test suite errors are symptomatic of the same underlying issue effecting RMQ. -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to rabbitmq-server in Ubuntu.

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread Frank Heimes
** Also affects: ubuntu-z-systems Importance: Undecided Status: New ** Changed in: ubuntu-z-systems Importance: Undecided => Medium ** Changed in: ubuntu-z-systems Assignee: (unassigned) => bugproxy (bugproxy) -- You received this bug notification because you are a member of

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread Frank Heimes
** Tags added: s390x -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x: erlang.cookie creation fails when changing file permissions To manage notifications about this bug go to:

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
** Description changed: + Ubuntu: disco development + On a new deployment, erlang will create a cookie with a random secret value for use; however it must have 0400 permissions otherwise erlang will refuse to use it. On s390x the automatic cookie creation code fails with: -

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
** Description changed: + Ubuntu: disco development + On a new deployment, erlang will create a cookie with a random secret value for use; however it must have 0400 permissions otherwise erlang will refuse to use it. On s390x the automatic cookie creation code fails with: -

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
All of the errors are related to file permissions; however I do think this is something in erlang rather than elixir. -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to rabbitmq-server in Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title:

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
All of the errors are related to file permissions; however I do think this is something in erlang rather than elixir. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1808984 Title: s390x:

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
Attempting to resolve by making elixir Arch: any https://launchpad.net/~ci-train-ppa- service/+archive/ubuntu/3568/+packages However tests fail on s390x which probably tells us something interesting. -- You received this bug notification because you are a member of Ubuntu Server, which is

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
Attempting to resolve by making elixir Arch: any https://launchpad.net/~ci-train-ppa- service/+archive/ubuntu/3568/+packages However tests fail on s390x which probably tells us something interesting. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
Might be related: Dec 18 14:14:35 rmq-more-tesitng rabbitmq[24111]: warning: Elixir is running in a system with a different endianness than the one its source code was compiled in. Please make sure Elixir and all source files were compiled in a machine with the same endianness as the current one:

[Bug 1808984] Re: s390x: erlang.cookie creation fails when changing file permissions

2018-12-18 Thread James Page
Might be related: Dec 18 14:14:35 rmq-more-tesitng rabbitmq[24111]: warning: Elixir is running in a system with a different endianness than the one its source code was compiled in. Please make sure Elixir and all source files were compiled in a machine with the same endianness as the current one: