IRC logs for #aegir, 2016-04-11 (GMT)

2016-04-10
2016-04-12
TimeNickMessage
[10:15:37]* flashpoint9 has joined #aegir
[10:31:37]* flashpoint9 has quit (Remote host closed the connection)
[10:49:13]* Egyptian[Home] has joined #aegir
[10:53:34]* Egyptian[Home] has quit (Ping timeout: 260 seconds)
[11:30:27]* Egyptian[Home] has joined #aegir
[11:30:35]* Egyptian[Home] has quit (Client Quit)
[11:37:05]* Egyptian[Home] has joined #aegir
[11:41:56]* flashpoint9 has joined #aegir
[12:11:02]* mstenta1 has quit (Ping timeout: 268 seconds)
[12:55:59]* flashpoint9 has quit (Remote host closed the connection)
[13:06:07]* Egyptian[Home] has quit (Quit: Leaving.)
[14:52:12]* absolute has joined #aegir
[14:53:45]* absolute has left #aegir ()
[15:23:56]* Deciphered is now known as DecipheredAFK
[15:56:28]* flashpoint9 has joined #aegir
[16:01:12]* flashpoint9 has quit (Ping timeout: 276 seconds)
[16:13:41]* boshtian has joined #aegir
[17:33:44]* ybabel has joined #aegir
[17:38:34]* rominron_ has joined #aegir
[18:14:44]* rominron_ is now known as rominronin_
[19:51:38]* gandhiano_ has joined #aegir
[20:15:33]* gandhiano_ has quit (Ping timeout: 246 seconds)
[20:25:22]* gandhiano_ has joined #aegir
[21:07:47]* adrinux has joined #aegir
[21:09:12]* adrinux has quit (Client Quit)
[21:09:51]* adrinux has joined #aegir
[21:10:18]* adrinux has left #aegir ()
[22:22:33]* noecc has joined #aegir
[22:23:04]* mstenta has joined #aegir
[22:26:09]* zombiebeard has joined #aegir
[22:42:11]* flashpoint9 has joined #aegir
[23:53:50]* Egyptian[Home] has joined #aegir
[00:01:17]* gandhiano_ has quit (Ping timeout: 260 seconds)
[00:27:14]<ergonlogic>mengi: thanks for pointing those out
[00:28:19]* manningx has quit (Ping timeout: 250 seconds)
[00:30:45]* Egyptian[Home] has quit (Quit: Leaving.)
[00:31:42]* Egyptian[Home] has joined #aegir
[00:32:01]* manningx has joined #aegir
[00:53:41]* Egyptian[Home] has quit (Quit: Leaving.)
[01:34:29]* rominronin_ has quit (Remote host closed the connection)
[01:43:26]* boshtian has quit (Ping timeout: 248 seconds)
[01:43:47]* flashpoint9 has quit (Remote host closed the connection)
[01:49:19]* flashpoint9 has joined #aegir
[02:06:50]* freiheit has joined #aegir
[02:07:24]* gandhiano_ has joined #aegir
[02:08:16]* freiheit has left #aegir ()
[02:35:15]* rominronin has joined #aegir
[02:35:41]* boshtian has joined #aegir
[02:37:04]* gandhiano_ has quit (Ping timeout: 264 seconds)
[02:40:21]* rominronin has quit (Ping timeout: 244 seconds)
[02:42:38]* ybabel has quit (Quit: ybabel)
[02:43:39]* boshtian has quit (Remote host closed the connection)
[02:43:57]* boshtian has joined #aegir
[02:50:04]* boshtian has quit (Ping timeout: 240 seconds)
[03:40:51]* gandhiano_ has joined #aegir
[03:57:56]* gusaus has joined #aegir
[04:02:54]* boshtian has joined #aegir
[04:30:47]* noecc has left #aegir ("pax")
[04:31:53]<jonpugh>I have a bizarre and scary thing happening... my sites are losing their DB credentials. Verify writes out VHOST configs with empty credentials
[04:32:10]<jonpugh>can anyone point me toward where that info comes from? ergonlogic helmo gboudrias ?
[04:33:11]<jonpugh>ironically they are still present in sites/x/drushrc.php files
[04:35:34]* rominronin has joined #aegir
[04:40:10]* rominronin has quit (Ping timeout: 244 seconds)
[04:46:01]<jonpugh>tracked it down to backend. `drush @hostmaster provision-verify` results in empty database credentials :|
[04:46:33]<ergonlogic>jonpugh: they should be in the db server's context/alias
[04:46:53]<jonpugh>the root user, yes? it is...
[04:47:59]<jonpugh>once the db is created, where are those credentials stored other than the site drushrc.php and the VirtualHost?
[04:48:19]<ergonlogic>just those
[04:48:21]<ergonlogic>iirc
[04:49:25]<jonpugh>then how does subsequent provision-verify work
[04:49:32]<jonpugh>... hmm
[04:49:39]<ergonlogic>it loads them from the drushrc
[04:50:43]<jonpugh>ah right, so ...
[04:50:59]<jonpugh>Provision_service_db::generate_site_credentials() {
[04:51:17]<jonpugh> //TODO - this should not be here at all
[04:51:17]<jonpugh> $creds['db_type'] = drush_set_option('db_type', $db_type, 'site');
[04:51:17]<jonpugh> $creds['db_host'] = drush_set_option('db_host', $this->server->remote_host, 'site');
[04:51:43]<jonpugh>ah ok, it's the next method
[04:51:53]<jonpugh> function fetch_site_credentials() {
[04:51:53]<jonpugh> $creds = array();
[04:51:53]<jonpugh> $keys = array('db_type', 'db_port', 'db_user', 'db_name', 'db_host', 'db_passwd');
[04:51:53]<jonpugh> foreach ($keys as $key) {
[04:51:53]<jonpugh> $creds[$key] = drush_get_option($key, '', 'site');
[04:51:53]<jonpugh> }
[04:51:53]<jonpugh> return $creds;
[04:51:55]<jonpugh> }
[04:52:16]<jonpugh>so drush_get_option() comes from ~/platformpath/site/x.com/drushrc.php
[04:52:38]<jonpugh>?
[04:52:50]<ergonlogic>yes, it's looking in the site context
[04:53:05]<ergonlogic>hence the 3rd parameter to drush_get_option()
[04:55:55]<jonpugh>so not drushrc.php? by site context you mean the drush alias file?
[04:56:11]<jonpugh>also I am debugging... fetch_site_credentials() doesn't get called at all on provision-verify
[04:56:46]<jonpugh>nor generate_site_credentials.
[04:57:30]<ergonlogic>drush 'site' context
[04:57:41]<ergonlogic>so, the drushrc.php, basically
[04:58:51]<ergonlogic>as for provision-verify, I believe everything just gets persisted unless explicitely overridden
[04:59:23]<ergonlogic>I believe that behaviour is at the root of the issue where people can't unset params
[04:59:48]<ergonlogic>but that's probably somewhere around d(), and the factory methods that build up that data
[05:01:42]<jonpugh>hrm
[05:03:22]<jonpugh>Either you're wrong about where it reads the db_passwd's from or my server is really borked :)
[05:03:34]<jonpugh>because I definitely see valid db configs in ~/platformpath/site/x.com/drushrc.php
[05:03:46]<jonpugh>I can manually put them in the VirtualHost file
[05:03:50]<jonpugh>and reload apache and the site works
[05:04:05]<jonpugh>then a drush @site provision-verify writes empty configs to virtualhost
[05:04:51]<ergonlogic>is it a stock Aegir3?
[05:05:08]<ergonlogic>it's entirely possible that I am wrong, btw
[05:05:17]<ergonlogic>I don't look at that code often
[05:05:25]<ergonlogic>and then only when I have to :p
[05:05:53]<jonpugh>it's basically aegir3 . I've made sure provision latest 3.x release
[05:06:24]<jonpugh>It's not stock, it's my slightly customized devshop
[05:07:33]<ergonlogic>make sure that you aren't calling d() outside a function or method
[05:08:10]<ergonlogic>as it gets cached, and could thus be getting set to emtpy db creds
[05:09:20]<ergonlogic>so, for example, don't do something like `define('SOME_CONSTANT', d()->platform_path)`
[05:09:23]<jonpugh>waiiit...
[05:09:30]<jonpugh>I think I found it.
[05:09:37]<jonpugh>my "exclude" array is big
[05:09:43]<jonpugh>includes all of aegir core :)
[05:09:54]<jonpugh>ok , i know what I did I think!
[05:10:59]<jonpugh>YEAH.
[05:11:00]<jonpugh>ok
[05:11:04]<jonpugh>thanks ergonlogic
[05:11:06]<ergonlogic>what was it?
[05:11:24]<jonpugh>I am experimenting with two front-ends
[05:11:42]<jonpugh>before I separated the users, I must have verified the second "hostmaster" which had no hosting features enabled
[05:11:57]<jonpugh>which wrote to global drushrc.php
[05:12:23]<jonpugh>adding all my disabled hosting features to the $options['exclude'] array
[05:12:29]<jonpugh>which included all of aegir
[05:12:30]<jonpugh>lol
[05:12:43]<jonpugh>so it was ignoring site module path, platform path...
[05:12:55]<ergonlogic>ok
[05:13:10]<jonpugh>woops :)
[05:13:45]<jonpugh>thanks for your help, getting feedback got the gears turning
[05:13:54]<jonpugh>ergonlogic++
[05:30:21]* gandhiano_ has quit (Ping timeout: 250 seconds)
[05:36:18]* rominronin has joined #aegir
[05:41:51]* rominronin has quit (Ping timeout: 264 seconds)
[05:42:36]* zz_kvanderw is now known as kvanderw
[06:16:59]* boshtian has quit (Quit: boshtian)
[06:37:19]* rominronin has joined #aegir
[06:43:41]* rominronin has quit (Ping timeout: 244 seconds)
[06:44:08]* flashpoint9 has quit (Remote host closed the connection)
[07:34:50]<jonpugh>ergonlogic: I've discovered you can just use the hostmaster path /var/aegir/hostmaster-1.x then you don't need separate ones for each module
[07:35:13]<jonpugh>There's a drush option for 'exclude-modules' I found in the process...
[07:35:27]<jonpugh>https://github.com/drush-ops/drush/blob/master/examples/example.drushrc....
[07:37:45]* flashpoint9 has joined #aegir
[07:42:09]* flashpoint9 has quit (Remote host closed the connection)
[07:54:09]* flashpoint9 has joined #aegir
[07:56:38]<jonpugh>ergonlogic: https://www.drupal.org/node/2704291
[07:56:38]<hefring>https://www.drupal.org/node/2704291 => Verify of a site with function "hosting_get_features" overwrites the `~/.drush/drushrc.php` file. [#2704291] => 2 comments, 1 IRC mention
[08:00:57]* zombiebeard has quit (Quit: zombiebeard)
[08:07:48]* flashpoint9 has quit (Remote host closed the connection)
[08:10:08]* shaneonabike1 has joined #aegir
[08:26:46]<colan>gboudrias (and anyone else): Would you kindly review the 4 modules I added over at http://docs.aegirproject.org/en/3.x/extend/contrib/#hosting-rest-api ?
[08:27:03]<colan>i'd like to make sure i'm not missing anything or getting anything wrong.
[08:29:28]<colan>then i can start working on https://www.drupal.org/project/hosting_saas
[08:35:15]<gboudrias>colan: You want to merge them?
[08:36:12]<gboudrias>colan: If so, hosting services should probably stay separate
[08:39:39]<gboudrias>If you just mean the text, it seems fine
[08:39:39]* rominronin has joined #aegir
[08:40:20]<gboudrias>For hosting_restapi: "The public-facing / client-facing site is CiviCRM." <-- I created a no-specifics branch in my fork: https://github.com/PraxisLabs/hosting_restapi/tree/no-specifics
[08:40:36]<gboudrias>We should probably use that one when we merge it into hosting_saas
[08:44:33]* rominronin has quit (Ping timeout: 246 seconds)
[08:45:26]<gboudrias>colan: I gave you commit access to hosting_saas
[09:07:06]* flashpoint9 has joined #aegir
[09:12:47]* flashpoint9 has quit (Remote host closed the connection)
[09:43:07]* flashpoint9 has joined #aegir
[09:43:51]* Egyptian[Home] has joined #aegir
[09:51:43]* flashpoint9 has quit (Remote host closed the connection)
[09:55:24]* shaneonabike1 has quit (Read error: No route to host)