Closed apraovjr closed 6 years ago
Please provide some more information so that someone could reproduce this:
~/.hal/config
) look like? If you paste your halconfig in here, please remember to omit any secrets.@danielpeach The version is 1.3.1-20180620105301
Here is the config
deploymentConfigurations:
- name: default
version: 1.8.1
providers:
appengine:
enabled: false
accounts: []
aws:
enabled: false
accounts: []
bakeryDefaults:
baseImages: []
defaultKeyPairTemplate: '{{name}}-keypair'
defaultRegions:
- name: us-west-2
defaults:
iamRole: BaseIAMRole
ecs:
enabled: false
accounts: []
azure:
enabled: false
accounts: []
bakeryDefaults:
templateFile: azure-linux.json
baseImages: []
dcos:
enabled: false
accounts: []
clusters: []
dockerRegistry:
enabled: true
accounts:
- name: my-docker-registry
requiredGroupMembership: []
providerVersion: V1
permissions: {}
address: https://index.docker.io
username: appugr8
password: omitted
email: fake.email@spinnaker.io
cacheIntervalSeconds: 30
clientTimeoutMillis: 60000
cacheThreads: 1
paginateSize: 100
sortTagsByDate: false
trackDigests: false
insecureRegistry: false
repositories: []
primaryAccount: my-docker-registry
google:
enabled: false
accounts: []
bakeryDefaults:
templateFile: gce.json
baseImages: []
zone: us-central1-f
network: default
useInternalIp: false
kubernetes:
enabled: true
accounts:
- name: my-k8s-account
requiredGroupMembership: []
providerVersion: V1
permissions: {}
dockerRegistries:
- accountName: my-docker-registry
namespaces: []
context: AKSClusterSpin
configureImagePullSecrets: true
cacheThreads: 1
namespaces: []
omitNamespaces: []
kinds: []
omitKinds: []
customResources: []
cachingPolicies: []
kubeconfigFile: /Users/aprao/.kube/config
oauthScopes: []
oAuthScopes: []
primaryAccount: my-k8s-account
openstack:
enabled: false
accounts: []
bakeryDefaults:
baseImages: []
oracle:
enabled: false
accounts: []
deploymentEnvironment:
size: SMALL
type: LocalGit
updateVersions: true
consul:
enabled: false
vault:
enabled: false
customSizing: {}
gitConfig:
upstreamUser: spinnaker
originUser: apraovjr
persistentStorage:
persistentStoreType: azs
azs:
storageAccountName: spinnakerstoragev1
storageAccountKey: omitted
storageContainerName: spinnaker
gcs:
rootFolder: front50
redis: {}
s3:
rootFolder: front50
oracle: {}
features:
auth: false
fiat: false
chaos: false
entityTags: false
jobs: false
metricStores:
datadog:
enabled: false
prometheus:
enabled: false
add_source_metalabels: true
stackdriver:
enabled: false
period: 30
enabled: false
notifications:
slack:
enabled: false
timezone: America/Los_Angeles
ci:
jenkins:
enabled: false
masters: []
travis:
enabled: false
masters: []
security:
apiSecurity:
ssl:
enabled: false
overrideBaseUrl: http://localhost:8084
uiSecurity:
ssl:
enabled: false
overrideBaseUrl: http://localhost:9000
authn:
oauth2:
enabled: false
client: {}
resource: {}
userInfoMapping: {}
saml:
enabled: false
ldap:
enabled: false
x509:
enabled: false
iap:
enabled: false
enabled: false
authz:
groupMembership:
service: EXTERNAL
google:
roleProviderType: GOOGLE
github:
roleProviderType: GITHUB
file:
roleProviderType: FILE
enabled: false
artifacts:
bitbucket:
enabled: false
accounts: []
gcs:
enabled: false
accounts: []
github:
enabled: false
accounts: []
gitlab:
enabled: false
accounts: []
http:
enabled: false
accounts: []
s3:
enabled: false
accounts: []
pubsub:
google:
enabled: false
subscriptions: []
canary:
enabled: false
serviceIntegrations:
- name: google
enabled: false
accounts: []
gcsEnabled: false
stackdriverEnabled: false
- name: prometheus
enabled: false
accounts: []
- name: datadog
enabled: false
accounts: []
- name: aws
enabled: false
accounts: []
s3Enabled: false
reduxLoggerEnabled: true
defaultJudge: NetflixACAJudge-v1.0
stagesEnabled: true
templatesEnabled: true
showAllConfigsEnabled: true```
There seems to be some incorrect behaviour in the response coming from Gate but I'm not able to reproduce it yet. In my LocalGit deployment the browser requests localhost:8084/webhooks/preconfigured
with an Origin: http://localhost:9000
header and then Gate responds with an Access-Control-Allow-Origin: http://localhost:9000
header. I can only get Gate to return Access-Control-Allow-Origin: *
if I omit the Origin header completely.
Can you confirm the following:
curl -v -H Origin:http://localhost:9000 http://localhost:8084/webhooks/preconfigured
?/webhooks/preconfigured
. Can you copy and paste the Request and Response headers that are sent and received for that GET request into this issue or into a gist?Thanks!
Here is output for the 1
* Trying ::1...
* TCP_NODELAY set
* Connection failed
* connect to ::1 port 8084 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8084 (#0)
> GET /webhooks/preconfigured HTTP/1.1
> Host: localhost:8084
> User-Agent: curl/7.54.0
> Accept: */*
> Origin:http://localhost:9000
>
< HTTP/1.1 200
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: http://localhost:9000
< Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT, PATCH
< Access-Control-Max-Age: 3600
< Access-Control-Allow-Headers: x-requested-with, content-type, authorization, X-RateLimit-App
< Access-Control-Expose-Headers: X-AUTH-REDIRECT-URL
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< X-Application-Context: gate:test,local:8084
< X-SPINNAKER-REQUEST-ID: f5a78fa4-f3ee-4381-9d56-89c79183e5fc
< Content-Type: application/json;charset=UTF-8
< Content-Length: 2
< Date: Fri, 13 Jul 2018 18:37:14 GMT
<
* Connection #0 to host localhost left intact
Output for 2 request and response respectively
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cache-Control: no-cache
Connection: keep-alive
Host: localhost:8084
Origin: http://localhost:9000
Pragma: no-cache
Referer: http://localhost:9000/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
X-RateLimit-App: deck
Response headers
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: x-requested-with, content-type, authorization, X-RateLimit-App
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT, PATCH
Access-Control-Allow-Origin: http://localhost:9000
Access-Control-Expose-Headers: X-AUTH-REDIRECT-URL
Access-Control-Max-Age: 3600
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Length: 2
Content-Type: application/json;charset=UTF-8
Date: Fri, 13 Jul 2018 18:38:04 GMT
Expires: 0
Pragma: no-cache
X-Application-Context: gate:test,local:8084
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-SPINNAKER-REQUEST-ID: 1bbd47f6-0853-473c-b585-a0ffaa27eb62
X-XSS-Protection: 1; mode=block
Hm. I'm a little confused - the error specifically calls out "The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'."
but we can see that the Access-Control-Allow-Origin header is not '*' in the response but is set to http://localhost:9000
. It also seems that even though the error posted is about the preflight OPTIONS request that the browser is receiving the subsequent GET request without issue.
Can you provide a screenshot of the errors you see in the console as well as the list of network requests that are being made (including their http method)? Something like this:
Also, feel free to reach out to me on slack, (join here: https://join.spinnaker.io my username is @sbws
) since this is a dev issue it might simply be quicker to iterate on the problem in chat.
@sbwsg Actually i dont get that error once i did this,
hal config security ui edit --override-base-url http://<deck-loadbalancer-dns-entry>:9000 hal config security api edit --override-base-url http://<gate-loadbalancer-dns-entry
where url was localhost plus this command
echo "host: localhost" | tee \ ~/.hal/default/service-settings/gate.yml \ ~/.hal/default/service-settings/deck.yml
and hal deploy apply
But i get this error when i want to enable canary configuration for new application created
Request URL: http://localhost:8084/v2/canaryConfig Request Method: GET
error
"Bad Request"failureCause
"retrofit.RetrofitError: 400
message:"400 "
status:400
timestamp:1531510409138
url:"http://localhost:8090/canaryConfig
OK, since this issue is resolved with those hal commands I'm going to close it. Canary Analysis is a separate topic and requires some configuration. The best place to get started is here: https://www.spinnaker.io/setup/canary/ and then work through the guides and docs starting here: https://www.spinnaker.io/guides/user/canary/
Judging from the hal config you posted previously it looks like you haven't enabled canary. The setup guide I've linked to above should walk you through that process.
If you have further questions about setting up Canary Analysis then both the forum https://community.spinnaker.io and slack are good resources. If you encounter what appear to be bugs or issues in the way Spinnaker is operating then feel free to create further Github issues!
@sbwsg should i open new issue for canary ?
It's difficult to say without knowing more - have you followed the setup guide already? https://www.spinnaker.io/setup/canary/
Paste the result of hal config -q
into this issue with any sensitive information removed.
@sbwsg yes followed it. Its local git setup running on machine.
name: default
version: 1.8.1
providers:
appengine:
enabled: false
accounts: []
aws:
enabled: false
accounts: []
bakeryDefaults:
baseImages: []
defaultKeyPairTemplate: '{{name}}-keypair'
defaultRegions:
- name: us-west-2
defaults:
iamRole: BaseIAMRole
ecs:
enabled: false
accounts: []
azure:
enabled: false
accounts: []
bakeryDefaults:
templateFile: azure-linux.json
baseImages: []
dcos:
enabled: false
accounts: []
clusters: []
dockerRegistry:
enabled: true
accounts:
- name: my-docker-registry
requiredGroupMembership: []
providerVersion: V1
permissions: {}
address: https://index.docker.io
username: appugr8
password:
email: fake.email@spinnaker.io
cacheIntervalSeconds: 30
clientTimeoutMillis: 60000
cacheThreads: 1
paginateSize: 100
sortTagsByDate: false
trackDigests: false
insecureRegistry: false
repositories: []
primaryAccount: my-docker-registry
google:
enabled: false
accounts: []
bakeryDefaults:
templateFile: gce.json
baseImages: []
zone: us-central1-f
network: default
useInternalIp: false
kubernetes:
enabled: true
accounts:
- name: my-k8s-account
requiredGroupMembership: []
providerVersion: V1
permissions: {}
dockerRegistries:
- accountName: my-docker-registry
namespaces: []
context: AKSClusterSpin
configureImagePullSecrets: true
cacheThreads: 1
namespaces: []
omitNamespaces: []
kinds: []
omitKinds: []
customResources: []
cachingPolicies: []
kubeconfigFile: /Users/aprao/.kube/config
oauthScopes: []
oAuthScopes: []
primaryAccount: my-k8s-account
openstack:
enabled: false
accounts: []
bakeryDefaults:
baseImages: []
oracle:
enabled: false
accounts: []
deploymentEnvironment:
size: SMALL
type: LocalGit
updateVersions: true
consul:
enabled: false
vault:
enabled: false
customSizing: {}
gitConfig:
upstreamUser: spinnaker
originUser: apraovjr
persistentStorage:
persistentStoreType: azs
azs:
storageAccountName: spinnakerstoragev1
storageAccountKey:
storageContainerName: spinnaker
gcs:
rootFolder: front50
redis: {}
s3:
rootFolder: front50
oracle: {}
features:
auth: false
fiat: false
chaos: false
entityTags: false
jobs: false
metricStores:
datadog:
enabled: false
prometheus:
enabled: true
add_source_metalabels: true
stackdriver:
enabled: false
period: 30
enabled: true
notifications:
slack:
enabled: false
timezone: America/Los_Angeles
ci:
jenkins:
enabled: false
masters: []
travis:
enabled: false
masters: []
security:
apiSecurity:
ssl:
enabled: false
overrideBaseUrl: http://localhost:8084
uiSecurity:
ssl:
enabled: false
overrideBaseUrl: http://localhost:9000
authn:
oauth2:
enabled: false
client: {}
resource: {}
userInfoMapping: {}
saml:
enabled: false
ldap:
enabled: false
x509:
enabled: false
iap:
enabled: false
enabled: false
authz:
groupMembership:
service: EXTERNAL
google:
roleProviderType: GOOGLE
github:
roleProviderType: GITHUB
file:
roleProviderType: FILE
enabled: false
artifacts:
bitbucket:
enabled: false
accounts: []
gcs:
enabled: false
accounts: []
github:
enabled: false
accounts: []
gitlab:
enabled: false
accounts: []
http:
enabled: false
accounts: []
s3:
enabled: false
accounts: []
pubsub:
google:
enabled: false
subscriptions: []
canary:
enabled: true
serviceIntegrations:
- name: google
enabled: false
accounts: []
gcsEnabled: false
stackdriverEnabled: false
- name: prometheus
enabled: true
accounts:
- name: aprao-prometheus
endpoint:
baseUrl: http://localhost:9090/
supportedTypes:
- METRICS_STORE
- name: datadog
enabled: false
accounts: []
- name: aws
enabled: false
accounts: []
s3Enabled: false
reduxLoggerEnabled: true
defaultMetricsAccount: aprao-prometheus
defaultStorageAccount: spinnakerstoragev1
defaultJudge: NetflixACAJudge-v1.0
defaultMetricsStore: prometheus
stagesEnabled: true
templatesEnabled: true
showAllConfigsEnabled: true
What response do you get when you call curl -v http://localhost:8090/canaryConfig
?
* Trying ::1...
* TCP_NODELAY set
* Connection failed
* connect to ::1 port 8090 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8090 (#0)
> GET /canaryConfig HTTP/1.1
> Host: localhost:8090
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 400
< X-Application-Context: kayenta:test,local:8090
< Content-Type: text/plain;charset=UTF-8
< Content-Length: 54
< Date: Fri, 13 Jul 2018 20:23:37 GMT
< Connection: close
<
* Closing connection 0
OK, the next step would be to check the kayenta logs for errors. Assuming you used the LocalGit defaults, it would be something like this: cat ~/dev/spinnaker/logs/kayenta.log
. Then you can read through the output to see if an exception was logged. Do you see anything there?
@sbwsg No exceptions, here is the sample
org.springframework.http.ResponseEntity<?> org.springframework.boot.actuate.endpoint.mvc.AuditEventsMvcEndpoint.findByPrincipalAndAfterAndType(java.lang.String,java.util.Date,java.lang.String)
2018-07-13 13:34:05.968 INFO 18447 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/trace || /trace.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-13 13:34:05.968 INFO 18447 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/resolvedEnv || /resolvedEnv.json],methods=[GET],produces=[application/vnd.spring-boot.actuator.v1+json || application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2018-07-13 13:34:08.384 INFO 18447 --- [ main] c.netflix.spinnaker.q.redis.RedisQueue : Configured queue: kayenta.keiko.queue
2018-07-13 13:34:09.167 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: completeExecution
2018-07-13 13:34:09.167 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: continueParentStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: invalidExecutionId
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: startTask
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: startWaitingExecutions
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: cancelExecution
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: resumeExecution
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: rescheduleExecution
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: restartStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: pauseStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: invalidStageId
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: runTask
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: startStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: skipStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: abortStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: completeStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: cancelStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: invalidTaskId
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: resumeTask
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: completeTask
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: startExecution
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: resumeStage
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: invalidTaskType
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: noDownstreamTasks
2018-07-13 13:34:09.168 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Message: pauseTask
2018-07-13 13:34:09.416 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Attribute: maxAttempts
2018-07-13 13:34:09.416 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Attribute: attempts
2018-07-13 13:34:09.897 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Attribute: deadMessage
2018-07-13 13:34:09.898 INFO 18447 --- [ main] c.n.s.c.SpringObjectMapperConfigurer : Registering subtype of Attribute: totalThrottleTime
2018-07-13 13:34:10.066 INFO 18447 --- [ main] .s.o.t.TaskSchedulerMetricsPostProcessor : Applying metrics to class org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler
2018-07-13 13:34:10.071 INFO 18447 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler'
2018-07-13 13:34:10.084 INFO 18447 --- [ main] com.netflix.spinnaker.q.QueueProcessor : Using RedisQueue queue
2018-07-13 13:34:10.423 INFO 18447 --- [ main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)]
2018-07-13 13:34:10.906 INFO 18447 --- [ main] .s.o.t.TaskSchedulerMetricsPostProcessor : Applying metrics to class org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler threadPoolTaskScheduler
2018-07-13 13:34:10.908 INFO 18447 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'threadPoolTaskScheduler'
2018-07-13 13:34:13.076 INFO 18447 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5a1de7fb: startup date [Fri Jul 13 13:33:16 PDT 2018]; root of context hierarchy
2018-07-13 13:34:13.953 INFO 18447 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-13 13:34:13.953 INFO 18447 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-13 13:34:14.130 INFO 18447 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : Detected @ExceptionHandler methods in controllerExceptionHandler
2018-07-13 13:34:14.134 INFO 18447 --- [ main] .m.m.a.ExceptionHandlerExceptionResolver : Detected @ExceptionHandler methods in genericExceptionHandlers
2018-07-13 13:34:14.266 INFO 18447 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-13 13:34:18.463 INFO 18447 --- [ main] o.s.ui.freemarker.SpringTemplateLoader : SpringTemplateLoader for FreeMarker: using resource loader [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5a1de7fb: startup date [Fri Jul 13 13:33:16 PDT 2018]; root of context hierarchy] and template loader path [classpath:/templates/]
2018-07-13 13:34:18.464 INFO 18447 --- [ main] o.s.w.s.v.f.FreeMarkerConfigurer : ClassTemplateLoader for Spring macros added to FreeMarker configuration
2018-07-13 13:34:18.819 WARN 18447 --- [ main] o.s.b.a.f.FreeMarkerAutoConfiguration : Cannot find template location(s): [classpath:/templates/] (please add some templates, check your FreeMarker configuration, or set spring.freemarker.checkTemplateLocation=false)
2018-07-13 13:34:21.595 INFO 18447 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-07-13 13:34:21.620 INFO 18447 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0
2018-07-13 13:34:22.372 INFO 18447 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2018-07-13 13:34:22.372 INFO 18447 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2018-07-13 13:34:22.770 INFO 18447 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2018-07-13 13:34:23.446 INFO 18447 --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2018-07-13 13:34:25.731 INFO 18447 --- [ main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: listUsingGET_1
2018-07-13 13:34:26.790 INFO 18447 --- [ scheduler-3] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:34:27.343 INFO 18447 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8090 (http)
2018-07-13 13:34:27.407 INFO 18447 --- [ main] com.netflix.kayenta.Main : Started Main in 79.825 seconds (JVM running for 88.202)
2018-07-13 13:34:28.333 INFO 18447 --- [ scheduler-3] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (1542ms)
2018-07-13 13:34:31.791 INFO 18447 --- [ scheduler-4] c.n.k.index.CanaryConfigIndexingAgent : Re-indexed canary configs in PT0.034S.
2018-07-13 13:34:36.769 INFO 18447 --- [ scheduler-8] c.n.k.o.controllers.PipelineController : Health indicators are all reporting UP; starting orca queue processing
2018-07-13 13:34:36.769 INFO 18447 --- [ events-18] c.n.s.q.discovery.DiscoveryActivator : Instance is UP... DiscoveryActivator starting
2018-07-13 13:34:51.489 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:35:28.571 INFO 18447 --- [ scheduler-4] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:35:28.574 INFO 18447 --- [ scheduler-4] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (3ms)
2018-07-13 13:35:51.490 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:35:52.797 INFO 18447 --- [0.1-8090-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-07-13 13:35:52.799 INFO 18447 --- [0.1-8090-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2018-07-13 13:35:53.048 INFO 18447 --- [0.1-8090-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 242 ms
2018-07-13 13:36:28.578 INFO 18447 --- [ scheduler-8] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:36:28.582 INFO 18447 --- [ scheduler-8] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (3ms)
2018-07-13 13:36:51.492 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:37:28.587 INFO 18447 --- [ scheduler-10] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:37:28.591 INFO 18447 --- [ scheduler-10] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (3ms)
2018-07-13 13:37:51.496 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:38:28.594 INFO 18447 --- [ scheduler-4] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:38:28.597 INFO 18447 --- [ scheduler-4] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (3ms)
2018-07-13 13:38:51.501 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:38:51.639 INFO 18447 --- [pool-1-thread-2] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Cleaning up 0 orphaned active executions
2018-07-13 13:39:28.600 INFO 18447 --- [ scheduler-1] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:39:28.601 INFO 18447 --- [ scheduler-1] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (1ms)
2018-07-13 13:39:51.505 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:40:28.609 INFO 18447 --- [ scheduler-9] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:40:28.612 INFO 18447 --- [ scheduler-9] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (1ms)
2018-07-13 13:40:51.508 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:41:28.613 INFO 18447 --- [ scheduler-10] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:41:28.617 INFO 18447 --- [ scheduler-10] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (3ms)
2018-07-13 13:41:51.510 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:42:28.619 INFO 18447 --- [ scheduler-10] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:42:28.622 INFO 18447 --- [ scheduler-10] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (2ms)
2018-07-13 13:42:51.515 INFO 18447 --- [pool-1-thread-1] c.n.s.o.q.r.RedisActiveExecutionsMonitor : Refreshing active execution gauges (active: 0)
2018-07-13 13:43:28.623 INFO 18447 --- [ scheduler-1] c.n.k.p.service.PrometheusRemoteService : ---> HTTP GET http://localhost:9090/api/v1/label/__name__/values
2018-07-13 13:43:28.626 INFO 18447 --- [ scheduler-1] c.n.k.p.service.PrometheusRemoteService : <--- HTTP 200 http://localhost:9090/api/v1/label/__name__/values (3ms)
Hm OK I think your best next step is to go on Slack (http://join.spinnaker.io/) and to ask a question in the #kayenta channel.
@sbwsg thanks for help!
Here, I followed the steps from this link and in step 3 Choose environment i have done local git source code (planning to contribute to spinnaker for azure) https://www.spinnaker.io/setup/install/
After
hal deploy apply
, the spinnaker UI deck loads onlocalhost:9000
but in console, i see this errorFailed to load http://localhost:8084/webhooks/preconfigured: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:9000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute
I followed some links online which suggested to add in gate.yml file.
cors: allowedOriginsPattern: http://localhost:9000
It still doesnt work. Any help would be appreciated as this is blocking me to work with local setup