Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: exit with return code of lxc_execute() #1432

Merged
merged 2 commits into from Mar 23, 2017

Conversation

brauner
Copy link
Member

@brauner brauner commented Feb 15, 2017

Signed-off-by: Christian Brauner christian.brauner@ubuntu.com

Closes #1431.

@stgraber
Copy link
Member

Looks like your fix revealed that we had a failing test on clang related to availability of the gnutls library.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
@brauner brauner force-pushed the 2017-02-15/fix_lxc_execute_return_code branch from 509c7f8 to 7dbcfe7 Compare February 16, 2017 01:22
@hallyn
Copy link
Member

hallyn commented Feb 16, 2017

Looks correct to me.

@glennpratt
Copy link

Should a test that would catch this be added?

@brauner
Copy link
Member Author

brauner commented Mar 15, 2017

jenkins: test this please.

@brauner
Copy link
Member Author

brauner commented Mar 15, 2017

@glennpratt, up for writing that patch?

@glennpratt
Copy link

@brauner I gave it a quick shot by adding a script under src/tests... but I don't know how to run the tests.

I see mentions in the Jenkins console output, but I don't know what /tmp/exercise is.

@brauner
Copy link
Member Author

brauner commented Mar 15, 2017

Jenkins: test this please

@stgraber
Copy link
Member

@brauner I don't see how throwing this back at Jenkins would fix anything :)

The problem is clearly that init inside the test container doesn't appear to be static, causing it to fail and so exit non-zero. In the past this issue was papered over by this bug, making the test pass despite the binary failing.

We need to figure out why that init build isn't static and fix that, or if it's not possible to have a static clang build, then adapt the test, to either work with the dynamic one or just be skipped.

@stgraber stgraber added the Incomplete Waiting on more information from reporter label Mar 15, 2017
@brauner
Copy link
Member Author

brauner commented Mar 15, 2017

Yeah, I just wanted to make sure that this wasn't a temporary failure.

@hallyn
Copy link
Member

hallyn commented Mar 23, 2017

Hi,

I'm finding that changing -static to -all-static in src/lxc/Makefile.am, I.e.

-init_lxc_static_LDFLAGS = -static
+init_lxc_static_LDFLAGS = -all-static

fixes it for me. Can you try that?

@brauner
Copy link
Member Author

brauner commented Mar 23, 2017

@hallyn, pushing a commit on top of my branch and including your signed-off by.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
@stgraber stgraber merged commit 1a9eaaa into lxc:master Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Incomplete Waiting on more information from reporter
Development

Successfully merging this pull request may close these issues.

None yet

4 participants