[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15576376#comment-15576376 ] Anuj Bhandar commented on AIRAVATA-2117: [~marcuschristie], The above bug is resolved in https://github.com/apache/airavata/pull/56 > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565813#comment-15565813 ] Marcus Christie commented on AIRAVATA-2117: --- That's fine. I'll put in a try/catch for now and will remove it once you've made the backend changes. Thanks! > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565806#comment-15565806 ] Anuj Bhandar commented on AIRAVATA-2117: yes [~marcuschristie], You are right, that should be the case. Let me look up the code and make changes accordingly, but this change will take some time as I have some other tasks on my hand. > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565785#comment-15565785 ] Marcus Christie commented on AIRAVATA-2117: --- [~anujbhan], Should getUserResourceProfile return null if there is no record instead of throwing an exception? The alternative I guess is that I catch the AiravataSystemException, but I don't like that because then the code would be assuming that the AiravataSystemException was thrown because a UserResourceProfile doesn't exist. > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565758#comment-15565758 ] Anuj Bhandar commented on AIRAVATA-2117: [~marcuschristie], There are no methods exposed to just check whether a userResourceProfile exists, in Airavata API. I guess "Airavata::getUserResourceProfile(Session::get('authz-token'), $userId, $gatewayId);" will be the only way to do it in PGA client. > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565737#comment-15565737 ] Anuj Bhandar commented on AIRAVATA-2117: [~marcuschristie], There are no records in UserResourceProfile table, I checked the dataBase. > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565694#comment-15565694 ] Marcus Christie commented on AIRAVATA-2117: --- Thanks Anuj. I have another question. I tried to query to see if a user has an existing UserResourceProfile {code} public static function get_or_create_user_resource_profile() { $userId = Session::get('user-profile')['username']; $gatewayId = Session::get('gateway_id'); $userResourceProfile = Airavata::getUserResourceProfile(Session::get('authz-token'), $userId, $gatewayId); return $userResourceProfile; } {code} However when I try this I get {noformat} Airavata \ API \ Error \ AiravataSystemException HELP Error while retrieving user resource profile. More info : Error while retrieving user resource profile. More info : javax.persistence.NoResultException: Query "SELECT p FROM UserResourceProfile p WHERE p.userId =:param0 AND p.gatewayID =:param1" selected no result, but expected unique result. {noformat} I think this is because [the backend code calls getSingleResult()|https://github.com/apache/airavata/blob/50cf71e44431e1dce3653df25790443d4a77ec0f/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/resources/UserResourceProfileResource.java#L161-L161]. Is there a better method to use to figure out if a UserResourceProfile already exists? > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565652#comment-15565652 ] Anuj Bhandar commented on AIRAVATA-2117: [~marcuschristie], The implementation in place considers username for userId field in UserResourceProfile > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565609#comment-15565609 ] Marcus Christie commented on AIRAVATA-2117: --- [~anujbhan], For the UserResourceProfile model, what is the userId? Is it the username, email address, or something else? > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541275#comment-15541275 ] Anuj Bhandar commented on AIRAVATA-2117: Pull request submitted, still some changes are pending, will make them once discussed with the team > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541276#comment-15541276 ] Anuj Bhandar commented on AIRAVATA-2117: https://github.com/apache/airavata/pull/50 > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > Attachments: user_resource_profile_model.thrift > > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15534994#comment-15534994 ] Anuj Bhandar commented on AIRAVATA-2117: Have finalized the data model upon discussing with suresh, find attached the thrift data model for "UserResourceProfile". The next thing on the list is to integrate this data model in gfac and registry service. > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15527217#comment-15527217 ] Suresh Marru commented on AIRAVATA-2117: [~anujbhan] these are good questions. Let me answer them here: 1) Yes this is related to the allocations you mention, but more so focused on using individual accounts rather than community accounts to do the actual submissions. 2) I think it will be useful for user to set the preferences but given the nature of support questions, gateway admin to overide or help with setting them. 3) The data is similar to gateway preferences, so: credential store token, login user name (on cluster), scratch space. 4) User is expected to configure the SSH key. > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (AIRAVATA-2117) User Compute Resource Preference
[ https://issues.apache.org/jira/browse/AIRAVATA-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517571#comment-15517571 ] Anuj Bhandar commented on AIRAVATA-2117: Here is the discussion summary: * Is this user story a direct descendant to Use-Case "Resource & job management for user's with third party Allocations" in https://issues.apache.org/jira/browse/AIRAVATA-2108?focusedCommentId=15512194&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15512194 * Will the user be given the privilege to update this preferences ? * What Data will the Gateway need ? username, password, sshURL * Who will configure the SSH key, user or the Gateway ? * In order to provide this feature, An optional endpoint will be exposed out of Airavata API, which will update the Userprofile data modal and respective changes to Gfac and PGA User Interface. > User Compute Resource Preference > > > Key: AIRAVATA-2117 > URL: https://issues.apache.org/jira/browse/AIRAVATA-2117 > Project: Airavata > Issue Type: Story > Components: Airavata API, GFac, PGA PHP Web Gateway >Reporter: Anuj Bhandar >Assignee: Anuj Bhandar > Labels: GATask > > As a user, I should be given the preference to register my Compute Resource > allocation to Airavata, So that i could use it to schedule jobs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)