Page MenuHomePhabricator

role::wikibase in wikidata-dev Cloud VPS project broken (⇒ can’t SSH into wikibase-* instances)
Closed, ResolvedPublic

Description

In the wikidata-dev project, any instance whose name begins with “wikibase” automatically gets role::wikibase applied. This role seems to be broken in some way, according to this output in the instance log:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Could not find data item profile::microsites::wikibase::server_name in any Hiera data file and no default supplied at /etc/puppet/modules/profile/manifests/microsites/wikibase.pp:3:18 on node wikibase-test-t225307.wikidata-dev.eqiad.wmflabs

The effect of this is that you can’t SSH into the instance because Puppet doesn’t finish. Workaround: give your instance some other name (assuming you don’t need role::wikibase).

Related Objects

Event Timeline

I tried this out by creating other-test-T225307 and wikibase-test-T225307 instances; other-test-T225307 worked fine, wikibase-test-T225307 doesn’t. (I’m deleting other-test-T225307 now, but wikibase-test-T225307 can stay around for a bit, in case someone wants to investigate it further.)

I wouldn't say that the role is necessarily broken; it may just be that it needs the hiera args provided if the class is applied. You could provide a good default in the git puppet tree, though, if there is a good universal default. Easier would be to just add it to the project-wide hiera setting on Horizon.

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T16:50:32Z] <Lucas_WMDE> other-test-T225307 deleted instance (no longer needed for T225312)

Lucas_Werkmeister_WMDE renamed this task from role::wikibase in wikidata-dev Cloud VPS project broken to role::wikibase in wikidata-dev Cloud VPS project broken (⇒ can’t SSH into wikibase-* instances).Jun 7 2019, 4:51 PM

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T16:59:52Z] <Lucas_WMDE> wikibase-test-T225307 edited hiera config and rebooted (investigating T225312)

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T17:05:16Z] <Lucas_WMDE> wikibase-test-T225307 deleted instance, no longer needed for testing T225312

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T17:06:47Z] <Lucas_WMDE> set default hiera config for role::wikibase prefix (T225312)

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T17:07:32Z] <Lucas_WMDE> wikidata-test-T225312 created instance

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T17:15:20Z] <Lucas_WMDE> wikibase-test-T225312 added proxy

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T17:21:03Z] <Lucas_WMDE> wikibase-test-T225312 sudo a2ensite 50-wikiba-se.conf

Mentioned in SAL (#wikimedia-cloud) [2019-06-07T17:34:59Z] <Lucas_WMDE> wikibase-test-T225312 deleted instance (test over)

Okay, I think I’ve figured out the most important parts. Basically, you don’t want to name your instance wikibase-something; however, if you do, I’ve now set some default config that at least lets you SSH into the instance, and added some documentation at https://wikitech.wikimedia.org/wiki/Nova_Resource:Wikidata-dev/Documentation#wikibase*.

@Andrew I don’t think there are good defaults for those parameters, though (perhaps for the server admin, but not for the server name), so I’d leave the puppet git tree as it is.