tampler opened a new issue #5238:
URL: https://github.com/apache/cloudstack/issues/5238


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main 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.
   -->
   ~~~
   Secondary Storage, NFS, SystemVM
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.15.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   Basic Zone
   KVM hypervisor
   Single host (management + agent)
   
   NFS export
   ```
   /export *(rw,async,no_root_squash,no_subtree_check)
   /mnt/secondary *(rw,async,no_root_squash,no_subtree_check)
   ```
   I also validated NFS functionality by reading/writing to the shared NFS 
folders from a different host
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Ubuntu 20.04.2
   KVM Hypervisor
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   Related to #4022
   
   After setting up a Basic Zone with a single host (management + agent), I see 
host resources, but no Secondary Storage available for CS.
   
   ![Screenshot from 2021-07-23 
00-04-36](https://user-images.githubusercontent.com/2816743/126709687-d26a97b4-be40-4990-90a2-3cdc33ec8def.png)
   
   I'm using a NFS backed Primary and Secondary Storage and set it up according 
to [this](https://rohityadav.cloud/blog/cloudstack-kvm/) manual. 
   
   I installed the SystemVM template with the following command:
   ```
   wget 
http://packages.shapeblue.com/systemvmtemplate/4.15/systemvmtemplate-4.15.1-kvm.qcow2.bz2
   
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \
             -m /export/secondary -f systemvmtemplate-4.15.1-kvm.qcow2.bz2 -h 
kvm \
             -o localhost -r cloud -d cloud
   ```
   
   Here's the log exert from management-server.log
   ```                        
   2021-07-23 00:01:38,823 DEBUG [o.a.c.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-b1d45b1b) (logid:43c37cbc) Zone 1 is ready to launch 
secondary storage VM              
   2021-07-23 00:01:38,833 INFO  [o.a.c.s.PremiumSecondaryStorageManagerImpl] 
(secstorage-1:ctx-b1d45b1b) (logid:43c37cbc) No running secondary storage vms 
found in datacenter id=1, starting one                                          
                                                                                
                                 
   2021-07-23 00:01:38,848 INFO  [o.a.c.s.SecondaryStorageManagerImpl] 
(secstorage-1:ctx-b1d45b1b) (logid:43c37cbc) Found a stopped secondary storage 
vm, starting it. Vm id : 149  
   ```
   Full log here
   [out.log](https://github.com/apache/cloudstack/files/6865325/out.log)
   
   
   ##### 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.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   - NFS SecondaryStorage is available 
   - Can launch Secondary Storage VM and other guest VMs
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   1. Secondary Storage is unavailable ( 0.00 GB / 0.00 GB )
   2. SystemVMs won't start with the exception: `2021-07-23 00:05:20,983 WARN  
[o.a.c.s.SecondaryStorageManagerImpl] (secstorage-1:ctx-794f66d0) 
(logid:37fa38c9) Exception while trying to start secondary storage vm        
   com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[SecondaryStorageVm|s-155-VM]Scope=interface 
com.cloud.dc.DataCenter; id=1`
   3. Can't launch any guest VM 
   
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to