https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362010-01-04T22:47:21ZEcoinformatics RedmineKepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154452010-01-04T22:47:21ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>I added a karEntryHandler for modules.txt files. I'm going to add a method to the module manager sot hat the entryHandler can call it to ask if a module listed in the modules.txt file is installed or not. If it is not, it will install it.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154462010-01-07T18:01:03ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>I've now split the module manager into two modules. module-manager now has basic classes for downloading modules. module-manager-gui has all of the gui classes. Just need to hook up the karhandler to the module manager.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154472010-01-08T18:58:13ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>Kar files can now include a modules.txt file which will be processed by the ModuleDownloader. Any modules/suites in the modules.txt file wil be downloaded (but not change-to'd). Now need to add code to add downloaded modules into the current modules.txt so that the contents are available to the kar file on the classpath.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154482010-01-08T19:59:55ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>The active modules.txt file is now appended with any information from the kar's modules.txt file. Note that this could be dangerous, so we'll need to keep an eye on any kars in the core build of kepler to make sure they're doing this correctly (if at all).</p>
<p>The only other issues is that kepler needs to be restarted after a kar file with a modules.txt file is inserted into the cache or the new module(s) will not be on the classpath. I'm deferring this until we get a runtime system for loading modules.</p>
<p>Closing this bug.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154492010-01-08T20:19:32ZDavid Welkerwelker4kepler@gmail.com
<ul></ul><p>How does appending modules to modules.txt ensure the same environment that an actor was running in?</p>
<p>This is going to fail in some situations.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154502010-01-08T20:40:27ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>Couple more issues here:</p>
<ul>
<li>I should have used the MANIFEST/dependsOnModule attribute instead of including a modules.txt file in the kar.</li>
</ul>
<p>A couple questions arise from this:</p>
<p>1) Right now, the infrastructure to download a module tied to a kar file is dependent upon the GUI. Do we want this feature tied to the GUI or not? The way I have it written now, the downloading happens automatically when a kar file is cached with no user input. This puts the burden on the developer of the kar to list a module dependency in an intelligent way. This could cause problems with users who are unfamiliar with the kars that they have downloaded or if the developer unknowingly lists a module that will conflict with another.</p>
<p>2) What about command line execution? Do we want our kars to be able to automatically get dependent modules when kepler is run from the command line?</p>
<p>3) this feature is in the roadmap. Given the problems with potentially corrupting a user's environment, should we reconsider this functionality until kepler 2.0 is more mature?</p>
<p>For now, I will change this to use the existing infrastructure and we can discuss these issues on the next conf. call.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154512010-01-08T20:49:50ZAaron Aaronaschultz@nceas.ucsb.edu
<ul></ul><p>There should always be user input when downloading new modules. Imagine that you are running the Kepler suite, then you download a KAR that depends on the WRP suite modules. Now all of a sudden your desktop app has all this new stuff that you've never seen before, it runs slower, and you have no idea how it got there! The user should always be asked if they want to download new modules when a module dependency is not satisfied.</p>
<p>In a server environment perhaps you would want to automatically download modules. Having a configuration parameter that toggles automatic module downloading on and off could be a way to handle this. I would recommend the default value for that parameter be false though. The user should know what they are getting themselves into by setting it to true.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154522010-01-08T20:53:46ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>tagged my current work here: <a class="external" href="https://code.kepler-project.org/code/kepler/tags/berkley-20100108-checkpoint-kar_can_download_modules-tag/">https://code.kepler-project.org/code/kepler/tags/berkley-20100108-checkpoint-kar_can_download_modules-tag/</a>. Now changing to use the dependsOnModule attribute.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154532010-01-11T20:26:08ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>I changed this around a bunch so it is now done in the GUI instead of on kepler startup. When a module-dependencies: attribute exists in the MANIFEST for the kar, the icon is changed in the tree and a new rt. click menu is added called "Download Dependencies." When this menu is activated by the user, he is prompted to download the module(s) listed in the MANIFEST. When he clicks "yes" the modules are downloaded. This part is complete.</p>
<p>The only part left to do is to notify the Library that the dependency has been satisfied. Aaron is going to add the code for that, then my code can call it.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154542010-02-23T18:35:43ZChad Berkleyberkley@nceas.ucsb.edu
<ul></ul><p>Since 4483 is pushed to 2.x, pushing this one as well. most of the functionality is there, we just need a bit more time to implement the underlying code.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154552011-01-27T21:49:31ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>I did work on this for bug#5099 . Attempting to open a kar with unsatisfied mod deps now prompts the user to download and restart using the missing modules. Also there's a kar opening strictness setting in preferences that the user can change.<br />The topic of what to do for headless executions, discussed above, remains open.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154562011-05-02T23:00:47ZMatt Jonesjones@nceas.ucsb.edu
<ul></ul><p>Moving to 2.3 for target.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154572012-07-25T21:26:45Zjianwu jianwujianwu@sdsc.edu
<ul></ul><p>My current tests are still the same. With GUI, Kepler in trunk can identify missing modules and download needed modules through user interaction. In command line, it will show WARNING message about missing modules and can execute with '-force' option.</p>
<p>In many cases, users use command line because they cannot open a GUI, such as when running Kepler on a remote machine. So ideally, users should be able to install missing modules only via command line interaction, like install some linux packages. It means we need a command like keplerModuleManager.sh to interact with users. After having this command, we can think how to integrate it with kepler.sh so users will be promoted with missing modules WARNING message and can interact to install those modules.</p>
<p>Postpone it to Kepler 2.5.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154582012-07-31T17:46:04Zjianwu jianwujianwu@sdsc.edu
<ul></ul><p>It is related to bug 5495 since both need module manager interaction through command line.</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=154592013-03-27T21:27:07ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 4516</p> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=222652015-08-17T16:00:05ZDaniel Crawldanielcrawl@gmail.com
<ul><li><strong>Assignee</strong> changed from <i>jianwu jianwu</i> to <i>Daniel Crawl</i></li></ul> Kepler - Bug #4516: Module Manager needs ability to install modules needed by KARshttps://projects.ecoinformatics.org/ecoinfo/issues/4516?journal_id=223122015-08-30T23:18:57ZDaniel Crawldanielcrawl@gmail.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>Priority</strong> changed from <i>Immediate</i> to <i>Normal</i></li></ul><p>The module manager can now change suites and install patches from the command line.</p>