New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What should I do next? #59

Closed
nnasaki opened this Issue Dec 11, 2015 · 20 comments

Comments

Projects
None yet
3 participants
@nnasaki

nnasaki commented Dec 11, 2015

I have deployed Cloud Foundry on Azure. I am trying to Getting Started with the cf CLI. However, I can't found API endpoint... What should I do?

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 11, 2015

Collaborator

@nnasaki
The API endpoint is https://api.YOUR-SYSTEM-DOMAIN.
If you use the example manifest, you can find the YOUR-SYSTEM-DOMAIN is set as cf.azurelovecf.com.
So, you should login with cf login -a https://api.cf.azurelovecf.com --skip-ssl-validation.
And the Email and Password are admin and c1oudc0w.

Collaborator

bingosummer commented Dec 11, 2015

@nnasaki
The API endpoint is https://api.YOUR-SYSTEM-DOMAIN.
If you use the example manifest, you can find the YOUR-SYSTEM-DOMAIN is set as cf.azurelovecf.com.
So, you should login with cf login -a https://api.cf.azurelovecf.com --skip-ssl-validation.
And the Email and Password are admin and c1oudc0w.

@tintoverano

This comment has been minimized.

Show comment
Hide comment
@tintoverano

tintoverano Dec 11, 2015

hi @bingosummer

is there a way to check that the system domain is the one above? I don't seem to find this setting on the portal

thanks,

zoltán

tintoverano commented Dec 11, 2015

hi @bingosummer

is there a way to check that the system domain is the one above? I don't seem to find this setting on the portal

thanks,

zoltán

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 11, 2015

Collaborator

Hi @tintoverano
system_domain is a concept in Cloud Foundry. It isn't on Azure Portal.
You can search system_domain in single-vm-cf-224.yml or multiple-vm-cf-224.yml.

Collaborator

bingosummer commented Dec 11, 2015

Hi @tintoverano
system_domain is a concept in Cloud Foundry. It isn't on Azure Portal.
You can search system_domain in single-vm-cf-224.yml or multiple-vm-cf-224.yml.

@tintoverano

This comment has been minimized.

Show comment
Hide comment
@tintoverano

tintoverano Dec 11, 2015

I meant after deployment of cf

thanks

tintoverano commented Dec 11, 2015

I meant after deployment of cf

thanks

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 11, 2015

Collaborator

When you deploy CF, you need to prepare a manifest single-vm-cf-224.yml. Right?
In the yml file, you need to configure system_domain.
In the example manifest, system_domain is set as the default value cf.azurelovecf.com.
You can change it into any domain name you owns.
After the deployment, you should login with the endpoint https://api.system_domain.
But you can't find system_domain on the Azure Portal.

Collaborator

bingosummer commented Dec 11, 2015

When you deploy CF, you need to prepare a manifest single-vm-cf-224.yml. Right?
In the yml file, you need to configure system_domain.
In the example manifest, system_domain is set as the default value cf.azurelovecf.com.
You can change it into any domain name you owns.
After the deployment, you should login with the endpoint https://api.system_domain.
But you can't find system_domain on the Azure Portal.

@tintoverano

This comment has been minimized.

Show comment
Hide comment
@tintoverano

tintoverano Dec 12, 2015

I see, OK
thanks!!

tintoverano commented Dec 12, 2015

I see, OK
thanks!!

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer
Collaborator

bingosummer commented Dec 12, 2015

@tintoverano

This comment has been minimized.

Show comment
Hide comment
@tintoverano

tintoverano Dec 12, 2015

@bingosummer
I created a custom subdomain to use for cf
can I use this now by changing the manifest and redeploy cf or there are other ways?
thanks a lot

update
found this: https://github.com/cloudfoundry-incubator/bosh-azure-cpi-release/blob/master/docs/deploy-bosh-manually.md#3-setup-dns
could this be used to change the dns set in the template to change it to my custom dns?

tintoverano commented Dec 12, 2015

@bingosummer
I created a custom subdomain to use for cf
can I use this now by changing the manifest and redeploy cf or there are other ways?
thanks a lot

update
found this: https://github.com/cloudfoundry-incubator/bosh-azure-cpi-release/blob/master/docs/deploy-bosh-manually.md#3-setup-dns
could this be used to change the dns set in the template to change it to my custom dns?

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 12, 2015

Collaborator

Yes.

  1. sudo python setup_dns.py -d <your-custom-domain> -i 10.0.16.4 -e <reserved-ip-for-cloud-foundry> -n <public-ip-of-dev-box>.
  2. Verify it with the dig api.<your-custom-domain> command.
  3. Change the manifest and redeploy cf.
  4. Login with cf login -a https://api.<your-custom-domain> --skip-ssl-validation.
Collaborator

bingosummer commented Dec 12, 2015

Yes.

  1. sudo python setup_dns.py -d <your-custom-domain> -i 10.0.16.4 -e <reserved-ip-for-cloud-foundry> -n <public-ip-of-dev-box>.
  2. Verify it with the dig api.<your-custom-domain> command.
  3. Change the manifest and redeploy cf.
  4. Login with cf login -a https://api.<your-custom-domain> --skip-ssl-validation.
@tintoverano

This comment has been minimized.

Show comment
Hide comment
@tintoverano

tintoverano Dec 12, 2015

@bingosummer
I got to step 4 with success, but then

API endpoint: https://api.cp.protact.me
FAILED
Error performing request: Get https://api.cp.protact.me/v2/info: dial tcp 40.115.3.184:443: getsockopt: connection refused

I guess it is probably some inbound rule problem

I have set up based on the AWS docs the following inbound rules for devbox (the IP above), I couldn't find docs for Azure (any hint?)

image

what do you think I'm missing?

thanks again

tintoverano commented Dec 12, 2015

@bingosummer
I got to step 4 with success, but then

API endpoint: https://api.cp.protact.me
FAILED
Error performing request: Get https://api.cp.protact.me/v2/info: dial tcp 40.115.3.184:443: getsockopt: connection refused

I guess it is probably some inbound rule problem

I have set up based on the AWS docs the following inbound rules for devbox (the IP above), I couldn't find docs for Azure (any hint?)

image

what do you think I'm missing?

thanks again

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 13, 2015

Collaborator

@tintoverano
It seems that you bind your domain name to the IP of the devbox. (The public IP xxx-devbox in Azure Portal)
Instead, you should bind it to the IP of the Cloud Foundry VM. (The public IP xxx-cf in Azure Portal).
For the public IP of Cloud Foundry VM, the rules have been setup in your manifest. (https://github.com/bingosummer/bosh-azure-cpi-release/blob/refine-docs/docs/example_manifests/single-vm-cf-224.yml#L27)

Some steps to troubleshoot:

  1. Run dig api.cp.protact.me in your devbox. It should resolve it to 10.0.16.4. If not, your DNS is not setup properly.
  2. Login with cf login -a https://api.cp.protact.me --skip-ssl-validation in your devbox.

In fact, if your purpose is to test CF on Azure, you can just leave the default value cf.azurelovecf.com in manifest and the default DNS settings we provide. Then cf login -a https://api.cf.azurelovecf.com --skip-ssl-validation in your devbox. It works.

We are preparing a guidance about how to setup the DNS. Will let you know after it's ready.

Collaborator

bingosummer commented Dec 13, 2015

@tintoverano
It seems that you bind your domain name to the IP of the devbox. (The public IP xxx-devbox in Azure Portal)
Instead, you should bind it to the IP of the Cloud Foundry VM. (The public IP xxx-cf in Azure Portal).
For the public IP of Cloud Foundry VM, the rules have been setup in your manifest. (https://github.com/bingosummer/bosh-azure-cpi-release/blob/refine-docs/docs/example_manifests/single-vm-cf-224.yml#L27)

Some steps to troubleshoot:

  1. Run dig api.cp.protact.me in your devbox. It should resolve it to 10.0.16.4. If not, your DNS is not setup properly.
  2. Login with cf login -a https://api.cp.protact.me --skip-ssl-validation in your devbox.

In fact, if your purpose is to test CF on Azure, you can just leave the default value cf.azurelovecf.com in manifest and the default DNS settings we provide. Then cf login -a https://api.cf.azurelovecf.com --skip-ssl-validation in your devbox. It works.

We are preparing a guidance about how to setup the DNS. Will let you know after it's ready.

@tintoverano

This comment has been minimized.

Show comment
Hide comment
@tintoverano

tintoverano Dec 13, 2015

@bingosummer

thanks a lot for your support!!

I'm puttting together a prototype and need to explore all aspects, that's why I'd like to use a real DNS

update: checked the DNS at step 1 above and it didn't get an answer (ANSWER: 0), right?

; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> api.cp.protact.me
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54758
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;api.cp.protact.me.     IN  A

;; AUTHORITY SECTION:
protact.me.     604800  IN  SOA ns.protact.me. root.protact.me. 1 604800 86400 2419200 604800

;; Query time: 1 msec
;; SERVER: 10.0.0.100#53(10.0.0.100)
;; WHEN: Sun Dec 13 09:18:53 UTC 2015
;; MSG SIZE  rcvd: 90

from my place answer comes from cf's public IP:

tintoverano@tintodev:~$ dig protact.me

; <<>> DiG 9.9.5-11ubuntu1-Ubuntu <<>> protact.me
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56966
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;protact.me.            IN  A

;; ANSWER SECTION:
protact.me.     600 IN  A   40.115.54.213

;; Query time: 49 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Dec 13 10:34:38 CET 2015
;; MSG SIZE  rcvd: 44

this is what I have/had in the manifest the last time I deployed cf:

  networks:
  - name: reserved
    static_ips: 40.115.54.213 # <--- Replace with your reserved public IP address for cloud foundry
  - name: cf_private
    default: [gateway, dns]
    static_ips: [10.0.16.4]

and I just reset the DNS at my provider and from my place it looks like this now:

tintoverano@tintodev:~$ nslookup protact.me
Server:     127.0.1.1
Address:    127.0.1.1#53

Non-authoritative answer:
Name:   protact.me
Address: 40.115.54.213

it points to cf's public IP at Azure

do I need to flush DNS or else?

tintoverano commented Dec 13, 2015

@bingosummer

thanks a lot for your support!!

I'm puttting together a prototype and need to explore all aspects, that's why I'd like to use a real DNS

update: checked the DNS at step 1 above and it didn't get an answer (ANSWER: 0), right?

; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> api.cp.protact.me
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 54758
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;api.cp.protact.me.     IN  A

;; AUTHORITY SECTION:
protact.me.     604800  IN  SOA ns.protact.me. root.protact.me. 1 604800 86400 2419200 604800

;; Query time: 1 msec
;; SERVER: 10.0.0.100#53(10.0.0.100)
;; WHEN: Sun Dec 13 09:18:53 UTC 2015
;; MSG SIZE  rcvd: 90

from my place answer comes from cf's public IP:

tintoverano@tintodev:~$ dig protact.me

; <<>> DiG 9.9.5-11ubuntu1-Ubuntu <<>> protact.me
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56966
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;protact.me.            IN  A

;; ANSWER SECTION:
protact.me.     600 IN  A   40.115.54.213

;; Query time: 49 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Sun Dec 13 10:34:38 CET 2015
;; MSG SIZE  rcvd: 44

this is what I have/had in the manifest the last time I deployed cf:

  networks:
  - name: reserved
    static_ips: 40.115.54.213 # <--- Replace with your reserved public IP address for cloud foundry
  - name: cf_private
    default: [gateway, dns]
    static_ips: [10.0.16.4]

and I just reset the DNS at my provider and from my place it looks like this now:

tintoverano@tintodev:~$ nslookup protact.me
Server:     127.0.1.1
Address:    127.0.1.1#53

Non-authoritative answer:
Name:   protact.me
Address: 40.115.54.213

it points to cf's public IP at Azure

do I need to flush DNS or else?

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 14, 2015

Collaborator

@tintoverano
If 40.115.54.213 is as same as cf-ip in ~/settings, your configuration is right.
It should work.

Could I have a permission to logon your devbox to troubleshoot the issue?
Please email binxi@microsoft.com to share the credentials if you are fine with it.

Collaborator

bingosummer commented Dec 14, 2015

@tintoverano
If 40.115.54.213 is as same as cf-ip in ~/settings, your configuration is right.
It should work.

Could I have a permission to logon your devbox to troubleshoot the issue?
Please email binxi@microsoft.com to share the credentials if you are fine with it.

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 14, 2015

Collaborator

@nnasaki Do you find the API endpoint? Hope my answer helps.
If it does not work, feel free to let me know.

Collaborator

bingosummer commented Dec 14, 2015

@nnasaki Do you find the API endpoint? Hope my answer helps.
If it does not work, feel free to let me know.

@tintoverano

This comment has been minimized.

Show comment
Hide comment
@tintoverano

tintoverano Dec 14, 2015

@bingosummer
sending my credentials...
thanks

tintoverano commented Dec 14, 2015

@bingosummer
sending my credentials...
thanks

@nnasaki

This comment has been minimized.

Show comment
Hide comment
@nnasaki

nnasaki Dec 15, 2015

@bingosummer Thank you for support. I found the API endpoint! But, I have a another problem. I could not login cf. What should I use credential?

nnasaki@ncloudfoundry:~$ cf login -a https://api.cf.azurelovecf.com --skip-ssl-validation
API endpoint: https://api.cf.azurelovecf.com

Email> nnasaki@ncloudfoundry.onmicrosoft.com

Password> 
Authenticating...
Credentials were rejected, please try again.

Password> 
Authenticating...
Credentials were rejected, please try again.

Password> 
Authenticating...
Credentials were rejected, please try again.
FAILED
Unable to authenticate.


API endpoint:   https://api.cf.azurelovecf.com (API version: 2.42.0)   
Not logged in. Use 'cf login' to log in.

nnasaki commented Dec 15, 2015

@bingosummer Thank you for support. I found the API endpoint! But, I have a another problem. I could not login cf. What should I use credential?

nnasaki@ncloudfoundry:~$ cf login -a https://api.cf.azurelovecf.com --skip-ssl-validation
API endpoint: https://api.cf.azurelovecf.com

Email> nnasaki@ncloudfoundry.onmicrosoft.com

Password> 
Authenticating...
Credentials were rejected, please try again.

Password> 
Authenticating...
Credentials were rejected, please try again.

Password> 
Authenticating...
Credentials were rejected, please try again.
FAILED
Unable to authenticate.


API endpoint:   https://api.cf.azurelovecf.com (API version: 2.42.0)   
Not logged in. Use 'cf login' to log in.
@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 15, 2015

Collaborator

@nnasaki
The Email and Password should be admin and c1oudc0w if you don't change the manifest. These are configured in your manifest YML file.
nnasaki@ncloudfoundry.onmicrosoft.com is your Azure account, not for Cloud Foundry.

Collaborator

bingosummer commented Dec 15, 2015

@nnasaki
The Email and Password should be admin and c1oudc0w if you don't change the manifest. These are configured in your manifest YML file.
nnasaki@ncloudfoundry.onmicrosoft.com is your Azure account, not for Cloud Foundry.

@nnasaki

This comment has been minimized.

Show comment
Hide comment
@nnasaki

nnasaki Dec 15, 2015

@bingosummer aha! I get it! Thanks! I keep trying cf.

nnasaki commented Dec 15, 2015

@bingosummer aha! I get it! Thanks! I keep trying cf.

@bingosummer

This comment has been minimized.

Show comment
Hide comment
@bingosummer

bingosummer Dec 15, 2015

Collaborator

Have helped @tintoverano setup DNS offline. It works now.
@nnasaki can login CF now.
Please close this issue.

Collaborator

bingosummer commented Dec 15, 2015

Have helped @tintoverano setup DNS offline. It works now.
@nnasaki can login CF now.
Please close this issue.

@nnasaki

This comment has been minimized.

Show comment
Hide comment
@nnasaki

nnasaki Dec 15, 2015

Alright. Thank you very much.

nnasaki commented Dec 15, 2015

Alright. Thank you very much.

@nnasaki nnasaki closed this Dec 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment