You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/05/16 16:19:33 UTC

[GitHub] izenk opened a new issue #2648: Templates created under project are not visible

izenk opened a new issue #2648: Templates created under project are not visible
URL: https://github.com/apache/cloudstack/issues/2648
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Management server
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   4.11.0.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   CEPH storage, Advanced networking
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Centos 7.4.1708
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Trying to create a template from VM.
   VM was  created, prepared and stopped under the **project**.
   Template creation task was completed successfully in terms that I can see notification about successful template creation. I can see job status in logs that everything is ok.
   At the same time created template are shown nowhere in UI, also I can't get it through cloudmonkey
   ~~~
   list templates templatefilter=all listall=true isrecursive=true
   ~~~
   
   but if I specify template uuid directly
   ~~~
   list templates listall=true templatefilter=all id=c350641c-26e6-484d-b0df-058b96ac3911
   ~~~
   
   template is shown
   
   At the same time I **can** see it in cs db in vm_template table for example.
   I tried to investigate a little, what went wrong.. I don't now internals of cs and there are no docs, but what looks strange for me:
   account_id is set to value, that belongs to account which was never created by me (manually or automatically).
   This account is not showing in UI, but is presented in cs db table account
   ~~~
   id: 7
   account_name: PrjAcct-spg-infra_srv-3
   uuid: 4e3ad0e6-919e-4066-b81a-9ea555f84e4e
   type: 5
   role_id: NULL
   domain_id: 3
   state: enabled
   removed: NULL
   cleanup_needed: 0
   network_domain: NULL
   default_zone_id: NULL
   default: 0
   ~~~
   
   What is the type 5? I can only find mentions(in doc or code) about types: 0,1,2,3
   Why role_id is null?
   After some testing, I found that for every project account of type 5 is created.
   So may be the reason, that created template is owned by this special account
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   * Create vm under project
   * Stop vm
   * Create template from ROOT disk
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   Template is shown in "Templates" area
   
   ##### ACTUAL RESULTS
   Template is not shown anywhere in UI and partly visible through API
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services