Giter VIP home page Giter VIP logo

Comments (20)

bingosummer avatar bingosummer commented on July 18, 2024

@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.

from bosh-azure-cpi-release.

tintoverano avatar tintoverano commented on July 18, 2024

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

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

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.

from bosh-azure-cpi-release.

tintoverano avatar tintoverano commented on July 18, 2024

I meant after deployment of cf

thanks

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

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.

from bosh-azure-cpi-release.

tintoverano avatar tintoverano commented on July 18, 2024

I see, OK
thanks!!

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

@tintoverano :)

from bosh-azure-cpi-release.

tintoverano avatar tintoverano commented on July 18, 2024

@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?

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

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.

from bosh-azure-cpi-release.

tintoverano avatar tintoverano commented on July 18, 2024

@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

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

@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.

from bosh-azure-cpi-release.

tintoverano avatar tintoverano commented on July 18, 2024

@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?

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

@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 [email protected] to share the credentials if you are fine with it.

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

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

from bosh-azure-cpi-release.

tintoverano avatar tintoverano commented on July 18, 2024

@bingosummer
sending my credentials...
thanks

from bosh-azure-cpi-release.

nnasaki avatar nnasaki commented on July 18, 2024

@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> [email protected]

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.

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

@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.
[email protected] is your Azure account, not for Cloud Foundry.

from bosh-azure-cpi-release.

nnasaki avatar nnasaki commented on July 18, 2024

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

from bosh-azure-cpi-release.

bingosummer avatar bingosummer commented on July 18, 2024

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

from bosh-azure-cpi-release.

nnasaki avatar nnasaki commented on July 18, 2024

Alright. Thank you very much.

from bosh-azure-cpi-release.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.