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

15.8.0-rc5 #115

Closed
jrha opened this issue Oct 7, 2015 · 24 comments
Closed

15.8.0-rc5 #115

jrha opened this issue Oct 7, 2015 · 24 comments
Assignees
Labels
Milestone

Comments

@jrha
Copy link
Member

jrha commented Oct 7, 2015

Top level issue tracker for any blocking issues discovered with 15.8.0-rc5.
Replaces #109.

@jrha jrha added the tracker label Oct 7, 2015
@jrha jrha added this to the 15.8 milestone Oct 7, 2015
@jrha jrha changed the title 15.8.0-rc4 15.8.0-rc5 Oct 7, 2015
@jouvin
Copy link
Contributor

jouvin commented Oct 7, 2015

I successfully deployed this RC on the test grid machines at LAL.

@jrha
Copy link
Member Author

jrha commented Oct 8, 2015

Everything looks fine on an SL7 VM at RAL.

@stdweird
Copy link
Member

stdweird commented Oct 8, 2015

@guillaume-philippon can you try to break things again? you were very succesful last time 😃

@jouvin
Copy link
Contributor

jouvin commented Oct 8, 2015

In fact, I was the person who broke the things, Guillaume is the person who fixed it, with you!

@jouvin
Copy link
Contributor

jouvin commented Oct 8, 2015

And to be explcit: my first comment was to say that I didn't succeed to break it again!

@jouvin
Copy link
Contributor

jouvin commented Oct 8, 2015

Trying to deploy more nodes, I found a schema issue with /system/network/nisdomain:

     [panc] element path: '/system/network/nisdomain'
     [panc] element value: lal-orsay
     [panc] type: 'type_fqdn' [/scratch/jouvin/quattor/cdb/cfg/quattor/15.8.0-rc5/pan/types.pan:440.18-440.28]
     [panc] type: 'structure_network' [/scratch/jouvin/quattor/cdb/cfg/quattor/15.8.0-rc5/components/network/core-schema.pan:208.26-224.1]
     [panc] type: 'structure_system' [/scratch/jouvin/quattor/cdb/cfg/quattor/15.8.0-rc5/quattor/types/system.pan:39.25-61.1]
     [panc] type: 'structure_profile' [/scratch/jouvin/quattor/cdb/cfg/quattor/15.8.0-rc5/quattor/schema.pan:27.26-32.1]
     [panc] path '/' bound to type structure_profile in [/scratch/jouvin/quattor/cdb/cfg/quattor/15.8.0-rc5/quattor/profile_base.pan:7.12-7.28]

I don't really understand where this is coming from. I see no related change in either ncm-network (core-schema.pan) or in pan/types.pan (type_fqdn definition). Anybody with an idea? I don't really understand either the type_fqdn requirement as lal-orsay is not precisely a FQDN. But this has always been our NIS domain name and it worked so far...

@jrha
Copy link
Member Author

jrha commented Oct 8, 2015

Seems simple enough to me, nisdomain should not be type_fqdn.

@jouvin
Copy link
Contributor

jouvin commented Oct 8, 2015

For me too... But doing a git blame, the change was introduced by @iancollier in 2013... and it worked since then for us. So before changing this, I'd like to understand what trigged the error in the RC. And I have no clue so far!

@jrha
Copy link
Member Author

jrha commented Oct 8, 2015

We fixed the logic in is_fqdn during this release, it had a bug that was matching short hostnames.

@jrha
Copy link
Member Author

jrha commented Oct 8, 2015

@jouvin
Copy link
Contributor

jouvin commented Oct 8, 2015

I had this in mind but was not able to spot it during my quick search... So clearly with a fixed is_fqdn, we need to fix the schema! Should be a string I think.

@jrha
Copy link
Member Author

jrha commented Oct 8, 2015

Hmm, that seems too loose, I'll see if I can find any documentation on what it is allowed to be.

@jrha
Copy link
Member Author

jrha commented Oct 8, 2015

No helpful documentation yet, but some source code I found has:

static char domain[1025];

It clearly also cannot contain spaces, because that would break the parsing of yp.conf
At least one man page states it is case-sensitive.

Experiments seem to indicate that anything short of white-space is accepted, so at least...

nisdomain ? string(1..1024) with match(SELF, '^\S+$')

@jrha
Copy link
Member Author

jrha commented Oct 8, 2015

Then again I have also just found:

count = sscanf (cp, "domain %64s server %80s", tmpdomain, tmpserver);

Testing ypbind with more than 64 characters in yp.conf gives an entry is not valid error.

So let's make that:

nisdomain ? string(1..64) with match(SELF, '^\S+$')

@jrha
Copy link
Member Author

jrha commented Oct 12, 2015

Next RC on the way...

@jrha jrha closed this as completed Oct 12, 2015
@jrha jrha reopened this Oct 15, 2015
@jrha
Copy link
Member Author

jrha commented Oct 15, 2015

I'm getting stuck (on at least SL6) on a failure of a single test on ncm-autofs, it's not reproducible outside of build_all_repos (i.e. with mvn test) but happens every time I run the full script.

not ok 90 - service autofs status not checked (no changes in 2nd run)
1..90
[VERB] Not saving file /etc/autofs.conf
[VERB] Changes to /etc/autofs.conf:
updated /root/quattordev/repos/configuration-modules-core/ncm-autofs/target/test/cache/maps/profile.2/profile.url
updated /root/quattordev/repos/configuration-modules-core/ncm-autofs/target/test/cache/maps/profile.2/profile.xml
[VERB] File /root/quattordev/repos/configuration-modules-core/ncm-autofs/target/test/cache/maps/profile.2/profile.xml was modified
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/90 subtests
src/test/perl/pod-syntax.t ..
1..2

@jrha
Copy link
Member Author

jrha commented Oct 15, 2015

Actually I can reproduce it with mvn clean test -Dprove.args=-v

@stdweird
Copy link
Member

@jrha build all repos runs fine for me on el5,6,7 (yesterday).

i need more output to debug this. either run the mvn command with QUATTOR_TEST_LOG_CMD_MISSING=1 QUATTOR_TEST_LOG_CMD=1 QUATTOR_TEST_LOG_DEBUGLEVEL=3 exported (or use the wrapper funcitons from quattor/quattor.github.com#146 (comment)), or use run build_all_repos with export DEBUG=1

i actually need the output above the errors, but feel free to send me the whole output

@jrha
Copy link
Member Author

jrha commented Oct 16, 2015

@jrha
Copy link
Member Author

jrha commented Oct 16, 2015

It is odd, because this has been running fine on (supposedly) identical VMs.

@stdweird
Copy link
Member

the gist was executed as root? all my tests run as quattor user via https://github.com/quattor/release/blob/master/src/scripts/context_init_build_all_repos.sh
i'll have a look in a bit

@stdweird
Copy link
Member

@jrha if /etc/autofs.conf is present, the tests fails. if not, all is fine. has nothing to do with running as root or not. this must be a bug in Test::Quattor.

@stdweird
Copy link
Member

i would suggest testing without the file present

@jrha jrha closed this as completed Oct 23, 2015
@jrha
Copy link
Member Author

jrha commented Oct 23, 2015

RC6 built happily with this workaround!

@jrha jrha mentioned this issue Oct 23, 2015
@jrha jrha self-assigned this Oct 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants