Comments (20)
@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.
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.
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.
I meant after deployment of cf
thanks
from bosh-azure-cpi-release.
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.
I see, OK
thanks!!
from bosh-azure-cpi-release.
@tintoverano :)
from bosh-azure-cpi-release.
@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.
Yes.
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>
.- Verify it with the
dig api.<your-custom-domain>
command. - Change the manifest and redeploy cf.
- Login with
cf login -a https://api.<your-custom-domain> --skip-ssl-validation
.
from bosh-azure-cpi-release.
@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?)
what do you think I'm missing?
thanks again
from bosh-azure-cpi-release.
@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:
- Run
dig api.cp.protact.me
in your devbox. It should resolve it to10.0.16.4
. If not, your DNS is not setup properly. - 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.
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.
@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.
@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.
@bingosummer
sending my credentials...
thanks
from bosh-azure-cpi-release.
@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.
@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.
@bingosummer aha! I get it! Thanks! I keep trying cf.
from bosh-azure-cpi-release.
Have helped @tintoverano setup DNS offline. It works now.
@nnasaki can login CF now.
Please close this issue.
from bosh-azure-cpi-release.
Alright. Thank you very much.
from bosh-azure-cpi-release.
Related Issues (20)
- Get https://10.0.0.4:25555/info connect: no route to host HOT 2
- Support Ephemeral OS Disks HOT 2
- Allow For Custom Disk Size When Specifying use_root_disk = true HOT 2
- CPI v37.3.1 failes to delete stemcells HOT 2
- Permissions issue if more then one user doing deployments HOT 7
- Azure CPI needs a new ways to deploy VMs HOT 6
- Support for application gateways with multiple backend pools HOT 9
- BOSH Azure CPI could provide API to automatically add diego cell or Create VM on which containers can be deployed on . #4 HOT 1
- development.md env setup is broken: vendor_gems script fails with gem not found error HOT 4
- Rubocop dev dependencies/scripts are broken
- Increase unit test coverage to 100% HOT 2
- Reduce ignored rubocop offenses HOT 4
- New BOSH Azure CPI release HOT 5
- Bosh director self snapshots are not being triggered HOT 4
- Improve JSON parsing speed by using Oj or FastJsonParser HOT 6
- Azure IMDS endpoint calls do not work when multiple UserAssigned managed identities are available HOT 3
- Azure ephemeral OS/temp disk HOT 7
- Support the azure blobstore as external blobstore for bosh HOT 12
- Local tests are not working on Linux (WSL2) HOT 4
- VM is being created with MS DNS even when local_dns is specified. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bosh-azure-cpi-release.