cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anshul1886 <...@git.apache.org>
Subject [GitHub] cloudstack issue #1278: CLOUDSTACK-9198: Virtual router gets deployed in dis...
Date Wed, 01 Mar 2017 07:50:27 GMT
Github user anshul1886 commented on the issue:

    https://github.com/apache/cloudstack/pull/1278
  
    @abhinandanprateek, Yes they are using same deployment planner. But VR was getting created
in disabled Pod but not regular VM because for VR deployment system user context was getting
set. In planner checks are not done/skipped for system user. So if you observe here fix is
to use user from calling context instead of system user. Hope this clears your doubt.
    
    One such example:
    `if (!isRootAdmin(vmProfile)) {
                    List<Long> disabledPods = listDisabledPods(plan.getDataCenterId());
                    if (!disabledPods.isEmpty()) {
                        if (s_logger.isDebugEnabled()) {
                            s_logger.debug("Removing from the podId list these pods that are
disabled: " + disabledPods);
                        }
                        podsWithCapacity.removeAll(disabledPods);
                    }
                }`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message