Re: [abacus] Usage submission authorization
Jean-Sebastien Delfino
Hi Piotr,
In some cases it may not be possible or viable to create new scope foreach resource id e.g. short lived resources. Why wouldn't that be possible? What type of short-lived resources did you have in mind? The typical use case I've seen is for a Cloud platform to decide to offer a new type of database or analytics or messaging service, or a new type of runtime for example. Before that new resource is offered on the platform, their resource provider needs to get on board, get a user id, auth credentials defined in UAA etc... You probably also need to define how you're going to meter that new resource and the pricing for it. Couldn't a scope be created in UAA at that time along all these other on boarding steps? Another reason why I'm not sure about short lived resources, is that although you may decide to stop offering a type a resource at some point, once you've metered it, and sent a bill for it to a customer, I don't think you can really 'forget' about its existence anymore... So in that sense I'm not sure how it can be 'short lived'. Some flexibility would also help to accommodate changes related togrouping resources by type as discussed in [1]. We discussed two options in [1]: a) support a resource_type in addition to resource_id for grouping many resource_ids under a single type b) a common resource_id for several resources (something like 'node' for all your versions of Node.js build packs for example) Since option (a) is not implemented at this point and Issue #38 is actually assigned to a 'future' milestone, AIUI resource providers need to use option (b) with a common resource_id for multiple resources. Is creating a scope for that common id still too much of a burden then? [1] - https://github.com/cloudfoundry-incubator/cf-abacus/issues/38 Thoughts? - Jean-Sebastien On Wed, Oct 7, 2015 at 5:51 PM, Piotr Przybylski <piotrp(a)us.ibm.com> wrote: Hi Sebastien,That OAuth token should include:What kind of customization of the above do you plan to expose? In some |
|
Re: CF v205 / Pushing an app
Dieu Cao <dcao@...>
We generally recommend to use a separate system domain from the shared apps
toggle quoted message
Show quoted text
domain. That could look like Our test environment for example uses a1.cf-app.com as the system domain and a1-app.cf-app.com as the default shared apps domain. This is because system components bypass cloud controller when registering routes with the gorouter. If you wish to use the same domain for system components and apps, a work around is to create a space that squats on routes that would be used by system components. -Dieu CF CAPI PM On Thu, Oct 8, 2015 at 10:10 AM, Jim Park <spark(a)pivotal.io> wrote:
The cf-release templates allow for a "system_domain" ( |
|
Re: CF deployment environments available for CF incubating projects to use?
Jean-Sebastien Delfino
It is ready to be given a try, and it is still under change anddevelopment. OK thanks so much for all the detailed info you've included here. I'll dig into it and will report back here for any questions or issues. Thanks! I would love to get to a world that deploying CF is so easy that thepublic documentation suffices for any individual team to set up their own CI easily. +1 from me :) as IMO that's key for growth and traction in a public and open community. - Jean-Sebastien On Wed, Oct 7, 2015 at 8:32 PM, Amit Gupta <agupta(a)pivotal.io> wrote: Hi Jean-Sebastien. |
|
Re: Multi-Line Loggregator events and the new Splunk "HTTP Event Collector" API
Mike Youngstrom <youngm@...>
Thanks for the response Rohit. I hope this is the beginning of a good long
toggle quoted message
Show quoted text
discussion on the topic. :) Before going too deep with the '\' proposal are you aware if the loggregator team considered any other possible ways an application could hint to the agent that this line should wait for future lines before sending the event? I'm not necessarily in love with the '\' approach just throwing an idea out to start a discussion. Mike On Wed, Oct 7, 2015 at 7:58 PM, Rohit Kumar <rokumar(a)pivotal.io> wrote:
Hi Mike, |
|
Initialization script for SSHFS
Cory Jett
I am looking for a way to push an application (ruby/node/java) and have a script run prior to the application starting that will setup SSHFS and move some of the content onto the share before the application starts. I was able to get the sample wordpress application working which includes this script that does exactly that but it is written in Python https://github.com/dmikusa-pivotal/cf-ex-wordpress/blob/master/.extensions/wordpress/extension.py. ideally, I would have a generic shell script that would run and set up SSHFS on deployment.
I attempted to accomplish this using a shell script in .profile.d but havent been able to get it working. If I get into a container and run the shell script it works fine. This is the script (which follows the same pattern as the wordpress python script, just in bash): #!/bin/bash mv $HOME/app/.ssh $HOME/ chmod 644 $HOME/.ssh/* chmod 600 $HOME/.ssh/sshfs_rsa mv $HOME/app/main.rb /tmp/ mkdir -p $HOME/app/SSHFS/ sshfs root(a)192.168.1.15:/root/ssh_target/ $HOME/app/SSHFS -o IdentityFile=$HOME/.ssh/sshfs_rsa -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts -o idmap=user -o cache=yes -o kernel_cache -o compression=no -o large_read mv /tmp/main.rb $HOME/app/SSHFS/ fusermount -uz $HOME/app/SSHFS Any ideas what I am doing wrong or if there is a better way to accomplish this? |
|
Re: [abacus] Usage processing authorization, was: Usage submission authorization
Jean-Sebastien Delfino
OK that confirms what I thought. Thanks!
toggle quoted message
Show quoted text
Assk, any thoughts as well? Did that make sense to you? -- Jean-Sebastien On Wed, Oct 7, 2015 at 6:09 PM, Piotr Przybylski <piotrp(a)us.ibm.com> wrote:
SebastienSo, I'm wondering if it still makes sense to use the resource provider'stoken inside our *asynchronous* usage *processing* pipeline. Shouldn't we |
|
Re: CF v205 / Pushing an app
Jim Park
The cf-release templates allow for a "system_domain" (
https://github.com/cloudfoundry/cf-release/blob/master/templates/cf-jobs.yml#L616), this allows for a separate namespace for non-app hostnames("app_domain"). Hope this helps Thanks, Jim On Thu, Oct 8, 2015 at 2:49 AM Sylvain Gibier <sylvain(a)munichconsulting.de> wrote: Hi, |
|
Re: cloud_controller_ng performance degrades slowly over time
Amit Kumar Gupta
We've seen issues on some environments where requests to cc that involve cc
toggle quoted message
Show quoted text
making a request to uaa or hm9k have a 5s delay while the local consul agent fails to resolves the DNS for uaa/hm9k, before moving on to a different resolver. The expected behavior observed in almost all environments is that the DNS request to consul agent fails fast and moves on to the next resolver, we haven't figured out why a couple envs exhibit different behavior. The impact is a 5 or 10s delay (5 or 10, not 5 to 10). It doesn't explain your 1:20 delay though. Are you always seeing delays that long? Amit On Thursday, October 8, 2015, Zach Robinson <zrobinson(a)pivotal.io> wrote:
Hey Matt, |
|
Re: cloud_controller_ng performance degrades slowly over time
Zach Robinson
Hey Matt,
I'm trying to think of other things that would affect only the endpoints that interact with UAA and would be fixed after a CC restart. I'm wondering if it's possible there are a large number of connections being kept-alive, or stuck in a wait state or something. Could you take a look at the netstat information on the CC and UAA next time this happens? -Zach and Swetha |
|
Re: UAA not sending routes registration and updates
Amit Kumar Gupta
What version of cf-release? If it's recent, see the "Important" section of
toggle quoted message
Show quoted text
the release notes about colocating the new route_registrar for v217 and v218. https://github.com/cloudfoundry/cf-release/releases/tag/v218 Amit On Thursday, October 8, 2015, Haitao Jiang <jianghaitao(a)gmail.com> wrote:
I filed a GitHub issue: |
|
Java Buildpack v3.3
Christopher Frost
I'm pleased to announce the release of the java-buildpack, version 3.3. This
release contains updates to various dependencies. - When processing Java Options the $ and \ characters are no longer escaped to allow environment properties to be used. (see the documentation <https://github.com/cloudfoundry/java-buildpack/blob/master/docs/framework-java_opts.md#escaping-strings> ) - Improved Luna Security Provider HA Support - Improved configuration of the DynaTrace agent. (via Tom Collings <https://github.com/cloudfoundry/java-buildpack/pull/235>) - Better AppDynamics code comments. (via Nikhil Katre <https://github.com/cloudfoundry/java-buildpack/pull/229>) - Better documentation of the Oracle JRE support. (via Dominik Bartholdi <https://github.com/cloudfoundry/java-buildpack/pull/230>) For a more detailed look at the changes in 3.3, please take a look at the commit log <https://github.com/cloudfoundry/java-buildpack/compare/v3.2...v3.3>. Packaged versions of the buildpack, suitable for use with create-buildpack and update-buildpack, can be found attached to this release <https://github.com/cloudfoundry/java-buildpack/releases/tag/v3.3>. *Packaged Dependencies* - AppDynamics Agent: 4.1.4_2 - GemFire 8.0.0 - GemFire Modules 8.0.0.1 - GemFire Modules Tomcat7 8.0.0.1 - GemFire Security 8.0.0 - Groovy: 2.4.5 - JRebel 6.2.5 - MariaDB JDBC: 1.2.2 - Memory Calculator (mountainlion): 2.0.0.RELEASE - Memory Calculator (precise): 2.0.0.RELEASE - Memory Calculator (trusty): 2.0.0.RELEASE - New Relic Agent: 3.21.0 - OpenJDK JRE (mountainlion): 1.8.0_60 - OpenJDK JRE (precise): 1.8.0_60 - OpenJDK JRE (trusty): 1.8.0_60 - Play Framework JPA Plugin: 1.10.0.RELEASE - PostgreSQL JDBC: 9.4.1203 - RedisStore: 1.2.0_RELEASE - Spring Auto-reconfiguration: 1.10.0_RELEASE - Spring Boot CLI: 1.2.6_RELEASE - Tomcat Access Logging Support: 2.4.0_RELEASE - Tomcat Lifecycle Support: 2.4.0_RELEASE - Tomcat Logging Support: 2.4.0_RELEASE - Tomcat: 8.0.27 Christopher Frost - Pivotal UK Java Buildpack Team |
|
UAA not sending routes registration and updates
Haitao Jiang
I filed a GitHub issue: https://github.com/cloudfoundry/cf-registrar/issues/7
What is happening was that - NATS receives route registration from CC and Traffic Controller - UAA not sending route registration to NATS, so UAA's routes are missing from gorouter - UAA's cf registrar stuck after following (instead of sending route registration messages): Connected to NATS - varz registration Announcing start up vcap.component.announce bosh vms, bosh cck, and monit all saying that everything running. Any suggestion on how to troubleshoot this? What are the possible reasons cf-registrar not sending route.register messages? |
|
Re: "bosh ssh" times out
Amit Kumar Gupta
You can use your bosh director as a gateway:
toggle quoted message
Show quoted text
bosh ssh --gateway-host ADDRESS-OF-DIRECTOR --gateway-user vcap On Thursday, October 8, 2015, Daniel Mikusa <dmikusa(a)pivotal.io> wrote:
I was under the impression that you need to be able to connect directly, |
|
Re: "bosh ssh" times out
Jim Park
You can proxy through the director or whatever else if you'd like with
toggle quoted message
Show quoted text
`bosh ssh --gateway_host director.example.com --gateway_user vcap --gateway_identity_file /path/to/bosh_directors_key`. BOSH director only manages creating a one-time use user login with sudo privileges and passes it back to bosh_cli. We use a bastion host to perform BOSH-ey things because of this. Thanks, Jim On Thu, Oct 8, 2015 at 8:49 AM Daniel Mikusa <dmikusa(a)pivotal.io> wrote:
I was under the impression that you need to be able to connect directly, |
|
Re: "bosh ssh" times out
Daniel Mikusa
I was under the impression that you need to be able to connect directly,
toggle quoted message
Show quoted text
but I can't say that definitively. Perhaps someone else can confirm. Dan On Thu, Oct 8, 2015 at 11:43 AM, Remi Tassing <tassingremi(a)gmail.com> wrote:
Hi Daniel, |
|
Re: "bosh ssh" times out
Remi Tassing
Hi Daniel,
10.0.16.103 is the internal address of that particular VM within the VPC (I've deployed CF in AWS). So I can't access it directly. I thought that was the point of using "bosh ssh", i.e., connecting to the ha_proxy (which has a public address) first and then to the VM. I have a feeling I've completed missed the point Remi |
|
Re: "bosh ssh" times out
Daniel Mikusa
Have you checked that the connection is not being blocked by a firewall?
toggle quoted message
Show quoted text
What happens if you SSH directly to that IP? Dan On Thu, Oct 8, 2015 at 11:22 AM, Remi Tassing <tassingremi(a)gmail.com> wrote:
Hi, |
|
"bosh ssh" times out
Remi Tassing
Hi,
I was trying "bosh ssh" in the interactive mode and after choosing the VM it hangs for a bit then times out. I was following this tutorial: http://docs.pivotal.io/pivotalcf/customizing/trouble-advanced.html Console snippet: .... 13. stats_z1/0 Choose an instance: 1 Acting as user 'admin' on deployment 'cf' on 'microbosh' Enter password (use it to sudo on remote host): * Target deployment is `cf' Setting up ssh artifacts Director task 43 Task 43 done Starting interactive shell on job nats_z1/0 ssh: connect to host 10.0.16.103 port 22: Connection timed out ... Has anyone encountered this problem? Is there other alternative? Remi |
|
Re: Metron: Timed out talking to store
Kyle Havlovitz (kyhavlov)
I only have one ETCD node, and it's the correct address in the metron config.
toggle quoted message
Show quoted text
From: Rohit Kumar <rokumar(a)pivotal.io<mailto:rokumar(a)pivotal.io>> Reply-To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org>> Date: Wednesday, October 7, 2015 at 8:24 PM To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org>> Subject: [cf-dev] Re: Metron: Timed out talking to store Hi Kyle, How many nodes do you have in your ETCD cluster? Also can you check whether the ETCD servers listed in the metron config match the IP addresses of the machines in your cluster. The config file is located in /var/vcap/jobs/metron_agent/config/metron_agent.json and you should look for the "EtcdUrls" field. Rohit On Wed, Oct 7, 2015 at 3:12 PM, Kyle Havlovitz (kyhavlov) <kyhavlov(a)cisco.com<mailto:kyhavlov(a)cisco.com>> wrote:
I'm seeing this error in the Metron logs repeatedly: "ServerAddressList.Run: Timed out talking to store; will try again soon." Metron seems to be able to connect to ETCD just fine, and I can curl /v2/keys/healthstatus/doppler from the machine. I'm not sure what would cause this error and can't think of anything else to try. Later, when it gets logs from the dea agent, it gives the error "can't forward message: loggregator client pool is empty", presumably because of the previous error. I can't figure out what the problem is with this; the zone property in the logging config files matches and it doesn't seem like a firewall problem, could anyone give advice? CF version is 217. |
|
Re: Cloud Foundry REST API in Golang
Rasheed Abdul-Aziz
The best we have to offer is the API package in CLI
https://github.com/cloudfoundry/cli This is a private API implementation, and as such we wake no promises about stability. In fact, we promise it will be unstable, but it's a good jumping in point if you need to get started. Especially as it demonstrates how to consume the API at the same time. All the best, Rasheed Abdul-Aziz Engineer, CLI Open Source Team On Thu, Oct 8, 2015 at 6:18 AM, Pravin Mishra <pravinmishra88(a)gmail.com> wrote: Hello, |
|