cloudfoundry-attic / cfdev

A fast and easy local Cloud Foundry experience on native hypervisors, powered by LinuxKit with VPNKit
Apache License 2.0
227 stars 64 forks source link

Missing redis service when pcfdev is started with scs option enabled #70

Closed codeaches closed 5 years ago

codeaches commented 5 years ago

I could not see redis in marketplace when I tried to run pcfdev with "-s scs" enabled. Please see details below with_scs_missing_redis.txt non_scs_success.txt

. Please note that redis shows up if run pcfdev without "-s scs".

PS C:\pcf_suite> cf dev start -c 12 -m 18432 -f pcfdev-pas.v.2.0.22.0-build.0.0.71-windows.tgz -s scs
Setting up IP aliases for the BOSH Director & CF Router (requires administrator privileges)
Downloading Resources...
Progress: |====================>| 100.0%
Setting State...
Creating the VM...
Starting VPNKit...
Starting the VM...
Waiting for the VM...
Deploying the BOSH Director...
Deploying CF...
  Done (11m22s)
Deploying Apps-Manager...
  Done (2m2s)
Deploying Spring Cloud Services...
  Done (13m33s)

         ██████╗  ██████╗███████╗██████╗ ███████╗██╗   ██╗
         ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝██║   ██║
         ██████╔╝██║     █████╗  ██║  ██║█████╗  ██║   ██║
         ██╔═══╝ ██║     ██╔══╝  ██║  ██║██╔══╝  ╚██╗ ██╔╝
         ██║     ╚██████╗██║     ██████╔╝███████╗ ╚████╔╝
         ╚═╝      ╚═════╝╚═╝     ╚═════╝ ╚══════╝  ╚═══╝
                     is now running!

        To begin using PCF Dev, please run:
            cf login -a https://api.dev.cfdev.sh --skip-ssl-validation

        Admin user => Email: admin / Password: admin
        Regular user => Email: user / Password: pass

        To access Apps Manager, navigate here: https://apps.dev.cfdev.sh
PS C:\pcf_suite> cf login -a https://api.dev.cfdev.sh --skip-ssl-validation
API endpoint: https://api.dev.cfdev.sh

Email> admin

Password>
Authenticating...
OK

Select an org (or press enter to skip):
1. cfdev-org
2. p-spring-cloud-services
3. system

Org> 1
Targeted org cfdev-org

Targeted space cfdev-space

API endpoint:   https://api.dev.cfdev.sh (API version: 2.98.0)
User:           admin
Org:            cfdev-org
Space:          cfdev-space
PS C:\pcf_suite> cf marketplace
Getting services from marketplace in org cfdev-org / space cfdev-space as admin...
OK

service                       plans                       description
p-mysql                       10mb, 20mb                  MySQL databases on demand
p-rabbitmq                    standard                    RabbitMQ service to provide shared instances of this high-performance multi-protocol messaging broker.
p-circuit-breaker-dashboard   standard, free, sponsored   Circuit Breaker Dashboard for Spring Cloud Applications
p-config-server               standard, free, sponsored   Config Server for Spring Cloud Applications
p-service-registry            standard, free, sponsored   Service Registry for Spring Cloud Applications

TIP: Use 'cf marketplace -s SERVICE' to view descriptions of individual plans of a given service.
PS C:\pcf_suite>
cf-gitbot commented 5 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/163414662

The labels on this github issue will be updated when the story is started.

codeaches commented 5 years ago

Ok, thank you. Just curious to know if there any work around while your team looks into it?

Thanks, Pavan

aemengo commented 5 years ago

Hey @codeaches

When you run CF Dev with the -s scs flag, redis is disabled by design. This is due to scs requiring more system resources than its counterparts. The only reason that p-mysql and p-rabbitmq are present is because they are required by scs. To opt into redis and spring cloud together, you can specify multiply services as a comma separated list: -s scs,redis. Moreover, there is also a -s all option to deploy all the services that CF Dev has to offer, if that was your motive.

Our next release should make the services provisioning workflow more intuitive.