Hello my fellow panopolistas,

Let me just start out by saying that I hate the UPDATE module with a passion that burns like the fire of a thousand suns. I consider UPDATE to be the most problematic module in core and if I had the coding chops to hack my way through core and change this one module, I would have done it a long time ago.

So with that out of the way, let me be frank: PANOPOLY UPDATE PINGS ARE A PROBLEM.

When you get an update ping for this distro, it is for each and every individual Panopoly module and not for the whole profile. At first blush, that makes sense given the mammoth list of modules Panopoly contains and the fact that Panopoly is supposed to be more of a foundational distribution than an end-product. The problem am seeing is that, either for the lack of maintainers or the lack of clarity about what Panopoly is exactly supposed to be, updates to key modules in the distribution, such as CTools and Panels, aren't happening concurrently.

For reference, please take a look at issues #2187433: UUID update necessitates an explicit dependency on the updated Ctools and #2188277: "cache_panels doesn't exist" error on update over at Panels. Here's the problem I had by following the alleged best practice of updating the whole profile:

  1. When there were IPE problems within Panopoly (it was either Widgets or Magic), I switched to the DEV version of CTools because that helped with getting rid of some of the problems I was having. It meant also upgrading PANELS and tweaking my dev server so that Ajax wouldn't crap out, etc. All was good once y'all changed it so that we could switch preview on/off, and so this mami & her build were happy.
  2. Yet when the current Panopoly release happened, I inadvertently switched my dev version of CTools to the stable one that's in the newly updated profile. Bad move.
  3. Alongside the Panopoly update, a PANELS update also happened. Guess what? The current Panels doesn't work with the stable version of CTools included in Panopoly 1.1. That's what's reported in #2187433.
  4. Panels 3.3 has 2 database changes. The second DB change was failing and it ended up skinning kittens and destroying the DB. That was, unfortunately, due to an old version of Context that wasn't responding to the new Ctools. That's issue #2188277. For now I can finish this build without it; but please keep in mind: This failure although due to a module extraneous to Panopoly, it is still technically related to it due to the fact it was caused by a conflict with CTools.

And here's why am worried about not having clear best practices for updating Panopoly:

Error #2187433: UUID update necessitates an explicit dependency on the updated Ctools shows that Panopoly may need to treat certain contrib modules as "core" and update the profile consistently based on those modules. Those core contrib modules have to be at a minimum:

  • Ctools
  • Features
  • Panels
  • UUID
  • Views

At a maximum, I would add to this core:

  • Entity
  • Entityreference
  • Fieldable Panels Panes
  • File Entity
  • JQuery_Update
  • Libraries
  • Panels Breadcrumbs
  • Pathauto
  • Strongarm
  • Tokens

I feel these are so intrinsically related to each other and absolutely necessary for Panopoly's existence that not updating the profile each time these are updated is counterproductive in bug swatting and further development of this distro.

Which takes me to error #2188277: "cache_panels doesn't exist" error on update: If Panopoly is meant to be a foundational profile for the building of other distros, it cannot assume to be an end-product like Commerce and run on "stable" versions of big momma modules like Ctools. Shouldn't we assume a module like Ctools would significantly impact dozens of other contrib modules? That's why deleting the whole profile to "upgrade" to a year-old version of Ctools is, to put it mildly, bananas.

Which brings me back to the issue of updating Panopoly as an installation: If following the update module's lead for updating a Panopoly installation, we have no way of updating the profile itself. In the case of Panopoly 1.1, there's new files added to the profile; but update never pinged those changes. And as I have described above, updating the whole profile is actually bad practice if you are building atop Panopoly and have modules dependent on the latest release of big mamma modules like Ctools. To hammer this issue further, #2186405: Revert: Installing 'ctools' (1.4) before 'uuid' during Panopoly install causes fatal error should be enough of a reason to roll out a Panopoly 1.2.

So am wondering: Is there a way the dev team could create a pseudo-module that updates the profile? Maybe call the module "Panopoly Profile Files Update"? Or am I missing a better way to update the profile files without overwriting the whole profile?

Let me reiterate: Due to the fact core contrib modules to Panopoly have not been identified and aren't consistently updated, overwriting Panopoly profile to update an installation, is bad practice at the moment. So following Commerce's update practices is at the moment, a really bad idea.

If there is a better way to update the profile files themselves without having to do it manually, please point me in that direction. I like to believe I've scoured the nooks and crannies of this site in the almost 10 years I've used Drupal; and that by now, I know where to find answers to almost anything. But this has me stumped and I think it has more to do with the way Panopoly updates are being packaged by the maintainers.

Yet, to be honest, I feel Panopoly is such a unique profile, that it needs to have it's own instruction manual and/or book; and that's the purpose of this post. We cannot really treat this profile as an end-product profile. Panopoly resides in-between Drupal and end-products like Open Atrium. I also believe it's so unique it merits it's own documentation.

So, in summary and for the TL;DR crowd:
Best practices for updating Panopoly as an installation have to be re-assessed and then documented. But that cannot happen without the maintainers re-assessing how they create new releases. Since these two issues go hand-in-hand, am happy to facilitate this discussion and turn it into Best Practices documentation and even a How-To presentation.

Comments

liza’s picture

Issue summary: View changes

edited because words :P

But now that am adding a comment; after this conversation, #2166865: Removing non-required modules from .info / .make files it occurred to me nowhere do we have any explicit instructions on how to use a .make file to update Panopoly. And there is still the issue that, if the .make is written to overwrite everything, it brings us back to the problems like the 2 updatedb failures I had after upgrading to Panopoly 1.1.

Also adding here this issue #2188597: Provide feature module updates for ctools / panels upgrade; which should also be reason enough for a Panopoly 1.2.

caschbre’s picture

I think there are a couple best practices for dealing with distributions in general...

1) You don't upgrade a module in a distribution unless you're planning to test it and deal with any issues. There are often inter-dependencies with modules and the versions used.

2) The upgrade process for a distribution is often that described on the commerce upgrade page. A lot depends on how the site is hosted (i.e. Aegir, etc.) but generally speaking you have to re-download the distribution.

The problem am seeing is that, either for the lack of maintainers or the lack of clarity about what Panopoly is exactly supposed to be, updates to key modules in the distribution, such as CTools and Panels, aren't happening concurrently.

I couldn't find where you're seeing this. The latest stable release is using ctools 1.3 and a specific revision of Panels 3.x-dev. The issues you referenced after the quoted text above is about upgrading to ctools 1.4 and panels 3.4. We have not done that yet in the stable release.

When there were IPE problems within Panopoly (it was either Widgets or Magic), I switched to the DEV version of CTools because that helped with getting rid of some of the problems I was having.

That sounds like you're taking on the task of working out any additional issues based on the upgrade you did.

Were there specific panopoly issue #s that were not resolved yet? We can check on the status of those.

If Panopoly is meant to be a foundational profile for the building of other distros, it cannot assume to be an end-product like Commerce and run on "stable" versions of big momma modules like Ctools

Panopoly has several use cases:
1) Be its own distribution that sites can be built on.
2) Be a base distribution that other distros can build on top of.
3) Be a set of modules that other sites can pick and choose what to use.

In any of those cases you would probably follow the same practice as #1 above. You upgrade / patch modules at your own risk. If you find issues then report them in the queue and we'll happily address them.

I would say that the assumption is incorrect. We do what we can to upgrade contribs used, but until we roll out an update to the panopoly distro / modules, then any manual upgrades are untested.

Due to the fact core contrib modules to Panopoly have not been identified and aren't consistently updated

If you look at the modules page, you'll see all of the contrib modules that are required. That means those modules are what ships with panopoly. I'm also not sure where you get that they are not consistently updated.

dsnopek’s picture

Hi Liza!

As far as the update module complaining about modules (and occasionally leading users to do unsafe updates), we do have an issue to fix that: #2128959: Replace default "update" module behavior with something that makes sense for distributions

Open Atrium implemented a special module that excludes all update information about modules included in Open Atrium and only notify the user when there is a new version of Open Atrium itself. We should look at their work and come up with a generic Panopoly solution, if possible.

I whole heartedly agree that we need more documentation on updating! I think the key problem for Panopoly (as opposed to other distributions) is something that @caschbre wrote:

Panopoly has several use cases:
1) Be its own distribution that sites can be built on.
2) Be a base distribution that other distros can build on top of.
3) Be a set of modules that other sites can pick and choose what to use.

For #1, the instructions are going to be pretty much the same as Commerce Kickstart. However, the other two are a little more complicated (both involve the user having to do stuff with .make files).

Although, we do have documentation for getting started with #2 - it's just the "how to handle upgrades going forward" part that would be awesome to document.

But, yeah, in the case of #1, it's generally best practice NOT to upgrade any module that a distribution includes - you should wait until the distribution does it. There are frequently complex dependencies between the versions selected by the distribution, including patches the distribution has applied which it needs to work correctly.

So, if you upgrade a module manually on your own, you have to do the same work that the distribution maintainers do when upgrading a module! This is includes: (1) re-applying and updating any patches applied so they still work as expected and (2) updating dependent modules, and (3) doing extensive testing (which you don't EVER do on a production site!).

This is the reason we don't upgrade modules as soon as updates come out! We have to test and fix problems so that the upgrade doesn't break anything. I know it sucks when we have old versions included in Panopoly, but if they are there, it is for a reason and we definitely have an issue in the queue to do the upgrade (probably with a description of the problem).

If you do the update manually, you're taking all that risk and work on yourself, unfortunately. :-/ The better course (if you can't wait to upgrade a particular module) would be to find the issue in the Panopoly queue and try to help get the problems that are keeping us back resolved upstream.

I hope that helps! We should definitely try to get more upgrade documentation created before the next Panopoly release. Thanks for creating the issue! :-)

mrfelton’s picture

Regarding the 1.2 release - I have just created #2190625: Panopoly 1.2 hitlist.

liza’s picture

So @caschbre really treats it like an end-product but the way am treating and y'all at Open Atrium is like a platform while working with Panopoly; but once done then it's treated like a product. So it's still basically 2 forms of documentation:

Best Practices if using Panopoly as an end-product
Best Practices if using Panopoly as a distro/custom build foundation

Correct?

liza’s picture

@mrfelton, thanks!
so we should be able to add to the README anything that comes out of this thread. no? any projected date?

so as to deal with update nags: am wondering if one of those things to consider is locking modules via drush?

@dsnopek: does that Open Atrium update module work on a regular Panopoly install?

caschbre’s picture

@liza... I treat it as three separate use-cases. I personally use Panopoly as a base distribution for my own distro. Some folks simply use the panopoly_* modules and then you have some who install Panopoly as-is and build their site out.

Each use-case has to handle how they upgrade modules and they are slightly different in how they're handled. But in all three cases you need to know what you're doing if you upgrade a module that panopoly requires.

Open Atrium has their own custom module that basically replaces the Update module. It hides the modules that OA depend on with a statement that you update at your own risk. We have it in our queue to do something similar.

mrfelton’s picture

If you are using Panopoly as a distribution base you will have your own makefile for your own distribution which pulls in the panopoly components and allows you to override whatever you like from that, If you need a later version of CTools, then you can specify that in your own makefiles as we do in Open Academy, and in doing so you are taking on the job of being a distribution maintainer yourself and you will need to assess those overrides yourself when it comes to upgrading the panopoly base. If you want to keep the number of patches and customisation that your own distribution needs to maintain to a minimum then you are best off pushing those patches back to Panopoly as soon as you can, so that we can evaluate them and get them incorporated directly in Panopoly instead.

When you talk about using it as an end product, I assume you just mean building a standalone site directly ontop of a Panopoly install - which is perfectly valid. If that is the case, then you should never touch anything directly in profiles/panopoly. If you really need to use something different from what Panopoly is providing then you should be installing stuff into sites/all/modules and those changes will be retained after you upgrade following the standard distribution upgrade process - but still it is your job to review those overrides and assess wether they are still needed or not when you upgrade the panopoly base.

lsolesen’s picture

There has been quite a lot of questions about security updates and how to approach these, when working with a base distribution. What we could do is making sure that security fixes are fixed right away and release a new version of Panopoly with only the security fixes (without everything else which has been going on in dev since the last release, since it might not be entirely stable). That would make people less worried. It should be possible to do while just branching from the latest tag of Panopoly, shouldn't it?

mrfelton’s picture

Possibly, yes. Sometimes at least, assuming a security update doesn't cause other things to break. However with the way that we do releases currently it actually takes a fair amount of time to do a release because we upgrade every single module so that the version numbers stay in sync. I'm currently right in the middle of making the 1.2 release, and its not exactly a quick job to cut releases for 10 modules and a distribution ensuring that everything still works and is in sync.

liza’s picture

+1 for security updates. if it's Drupal's best practice to warn people and sort of blow every bell and whistle when there's a potential risk to a site; Panopoly should be issuing security updates soon after they are announced for contrib modules.

that's what prompted me to open this thread --and it's why i was alarmed when people were suggesting the only way to update contrib modules in Panopoly is to wait for major distro releases. it's really not good practice.

but also, it worries me that the team may be too busy working on major releases and not focused on potentially significant patches among the contrib modules for lack of hands (or eyeballs or testing). case in point, this pretty significant patch for exporting/importing Views via Drush. i've been having problems exporting views via Features and this patch saved the day.

so that got me thinking: similar to the #2190625: Panopoly 1.2 hitlist thread, i suggest the Panopoly team start a contrib modules patches thread for each release. am thinking that having enough Panopoly people test contrib patches may help in expediting their upgrades/releases. and just to prove my point a bit further: here's a list of patches i've had to apply to Panopoly 1.2 contrib modules, thus far:

Features
#1867910: Undefined index: dependencies features.drush.inc:252
#2155945: Strict warning: Only variables should be passed by reference in menu_links_features_export_render() (line 244 of /sites/all/modules/features/features/includes/features.menu.inc).

RespondJs
#1907282: Undefined constant in respondjs.drush.inc

and of course, Views
#1096648: Add drush views-export and views-import commands

but to go back to my original intent on this post: we can't really issue documentation on upgrading until the Panopoly devs decide how to deal with security releases.

dsnopek’s picture

Tom (@mrfelton), Matt (@populist) and I had a Google Hangout yesterday and discussed how to handle security releases. The plan is to get better connected with the security team, so that we're aware of any security issues that affect Panopoly long before they are announced publicly. This will allow us to be ready in advance and synchronize Panopoly releases with security releases. However, this will take some time to figure out and we likely won't have the final process in place for a couple months. But once we do, users shouldn't have to worry about this anymore! :-)

@liza: As far as the contrib patches, I'd recommend opening an issue for each of them (or maybe for each module that is being patched) in the Panopoly issue queue, so that we can review adding them to Panopoly! We have a policy that every commit needs to have an issue associated with it, so making the issues for us will bring them one step closer to getting committed. ;-)

BTW, I wasn't personally aware of any of those issues/patches - thanks so much for bringing them to our attention! In the future, I'd recommend making an issue in the Panopoly issue queue for any patches you add to fix bugs. Any bug fix for a module we bundle in Panopoly should be considered for inclusion! And if you can't find an existing issue in the queue, it literally means that we don't know about it. :-) We (Matt, Tom and I) are really good about putting everything we find (or even think of) into the issue queue, usually long before committing it or even finding the solution.

Also, we also have personal relationships with the maintainers of some of those modules (for example, Features) and if a patch is required to fix an issue in Panopoly, we can sometimes encourage them to look at committing it before they may otherwise would have. So, there's lots of advantages to reporting your patches in the Panopoly issue queue! ;-)

liza’s picture

awesome! i will definitely do that. should i start with the patches i mentioned in #11 or just going forward?

dsnopek’s picture

@liza: Please start with the patches you mentioned in #11! Thanks. :-)

liza’s picture

which is the COMPONENT i should use for these issues? should i place it under CORE? i feel that CONTRIB MODULES should be a separate component from the Panopoly Core modules. guess am opening an issue for that too :D

dsnopek’s picture

It should be under the Panopoly module that brings in that contrib module. You can see in the .make file. For example, it's Panopoly Core that pulls in both Views and Features:

http://drupalcode.org/project/panopoly_core.git/blob/refs/heads/7.x-1.x:...

So, the component should be "Core". The .make file is actually where any patches we include will be placed, so that's why the issue is against that module.

Respondjs is pulled in by Panopoly Theme, so the Component should be "Theme".

I hope that helps!

bojanz’s picture

You will want to keep an eye out on #2230419: Distribution updates run in an unpredictable order.
It will keep biting us all until it's fixed.

dsnopek’s picture

Thanks, @bojanz! I'm following that issue now.

boTux’s picture

Hi,
Maybe we could set up a git repository with a built version of Panopoly, like the populist/panopoly-drops-7 but with the core version of drupal and not the Pantheon Pressflow 7 one...
Because after trying the Pantheon platform and reading their git faq. I tried to sync my personal repo with the panopoly-drops-7 with : git pull -Xtheirs https://github.com/populist/panopoly-drops-7.git master
And I'm pretty impressed ! To have all the git history of drupal and panopoly is very cool. But the modification for Pantheon and pressflow are not what I'm looking for...

Is it simple to set up a git like that ?
And is it a clean way to upgrade our distribution?

Thanks.

miromarchi’s picture

Hi, I just want to link here the new documentation page on updating panopoly created by dsnopek:
https://drupal.org/node/2272177
Thank you @dsnopek

liza’s picture

thanks for that documentation.

just wanted to give a heads up on a couple of problems am having with each update:

1) drush dl panopoly" isn't working for me
for some bizarre reason drush is DELETING panopoly instead of actually downloading the profile & re-writing; so the system craps out before updating because there's no profile in there to finish the job. so the most simple way of updating with Drush isn't working for me and i have no idea why :\

i can circumvent this by manually downloading & running updb but... yeah...

2) "core" contrib modules with significant updates are still not included
i've been seriously thinking of forking Panopoly into a smaller, stripped down to its essence version of this distro. i use Panopoly as a framework, not as a product, and so there's quite a number of modules (native Panopoly & contrib) that really are just icing on the framework cake but shouldnt be considered significant to the use of Panopoly. am saying this because it has obviously created a lot of catch up work that is never caught up with from version to version.

for example, some of the "core contrib" modules in Panopoly should be : Features, Pathauto, RespondJS, Views, (and maybe) ViewsAutocompleteFilter. these have tickets for updating in the distro but it hasn't happened yet. i do these updates manually; but here's a perfect example of how the question of what is "core" and what is "optional" in Panopoly is becoming a problem (at least for me) with each update.

which brings me to boTux's comment: i would love to see a clean Drupal + Panopoly pull from git BUT! my only hesitation about that is the issue around these contrib module updates. would it be worth it to pull each module separately? given the number of them, would it then be prudent to git only "core contrib" modules and leave as is the optional ones? these are questions about code management that i feel should be address sooner than later.

on that note: i had to create a txt file to track the singular patches/updates i've done with contrib Panopoly modules. maybe y'all want to see it and include it as part of the distro's documentation? let me know.

dsnopek’s picture

@liza: What version of drush are you using? I tried it with Drush 5.10 and Drush 6.2, and it worked. If it's a version thing, I'd love to know so I can add something to the documentation.

To your second point about a cut down version of Panopoly, I responded to one of your other comments on another issue with a possible approach to that:

https://drupal.org/node/2139481#comment-8806349

I hope that helps! :-)

for example, some of the "core contrib" modules in Panopoly should be : Features, Pathauto, RespondJS, Views, (and maybe) ViewsAutocompleteFilter. these have tickets for updating in the distro but it hasn't happened yet.

There's a number of things you can do to help get these committed! For example:

  • Providing a patch against Panopoly (ie. to it's .make file), rather than just the patch against the individual module or information about the new version. I personally include a number of Panopoly patches in the .make files for my child distributions for testing, so having it already available would make it easier for myself and others to test.
  • Running the Behat test suite against Panopoly with the new version/patch and reporting success.
  • Doing manual testing against Panopoly's features that depend on that module and reporting success (along with a list of the things you tried, so we know something important wasn't missed).

This saves the maintainers from having to do these things and so it'll make it much easier to make a change. The maintainers work on Panopoly in their spare time as volunteers, so we have to prioritize where we spend our limited time. I tend to prioritize security, regressions and easy changes - but that's just me. :-)

on that note: i had to create a txt file to track the singular patches/updates i've done with contrib Panopoly modules. maybe y'all want to see it and include it as part of the distro's documentation? let me know.

Yes, absolutely! If there are patches you're using to fix bugs and there is no issue in the queue, then we don't know about them.

liza’s picture

ah! so patch against panopoly itself... ok, let me go over these instructions more carefully and i'll report back. thanks!

dsnopek’s picture

Status: Active » Fixed

Now that we have the new docs here:

https://drupal.org/node/2272177

And distro_update has been merged into Panoploy:

#2128959: Replace default "update" module behavior with something that makes sense for distributions

I don't think there's anything big we need to do on this anymore! There will always be improvements we can make to the docs and fixes to distro_update, but those can get their own issues. :-)

sonicthoughts’s picture

I have followed the docs, tried to create a child distro asked questions, gotten support and please hear me when I say: this issue is not fixed. I'm def not a Drupal rock star, but I'm not a moron either. If the goal is to make Panopoly easier for system builders and non-developers, then please do not consider this issue "fixed." I think the issue is more deeply related to drupal profiles/distros/drush, but since this is the most popular distro, hopefully this will lead the way.

Ability to add/change makefile w/out getting overwritten.
no requirement for maintaining a custom child distro (unless that is easier too.)
ability to update specific module even though it may "break" panopoly
ability to add patch or dev of specific component

dsnopek’s picture

@sonicthoughts: Can you create a new issue with the list of things that still need to be fixed? I really do think we've handled everything originally brought up in this issue and I'd rather start with a fresh issue, rather than trying to change the scope of this one.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.