pantheon-systems / terminus

The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform
https://pantheon.io
Other
318 stars 196 forks source link

domain:dns returns php errors #1749

Closed ioskevich closed 7 years ago

ioskevich commented 7 years ago

Expected behavior

domain:dns sitename>.env should return list of recommended DNS records for the sitename.env

Actual behavior

domain:dns sitename.env returns PHP errors (seems to be one PHP error per domain name associated with the env.

 terminus domain:dns mahindrausa.live -vvv
 [debug] Plugin Autoload: %dir is a Terminus source file.
 [debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.4.1 (php_version=5.6.23&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/site-names/mahindrausa
Method: GET
Body: null
 [debug] #### RESPONSE ####
Headers: {"Server":["nginx"],"Date":["Mon, 07 Aug 2017 12:48:24 GMT"],"Content-Type":["application\/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Connection":["keep-alive"],"X-Pantheon-Trace-Id":["b33ce160-7b6e-11e7-b21d-c1628be2e35e"],"X-Frame-Options":["deny"],"Access-Control-Allow-Methods":["GET"],"Access-Control-Allow-Headers":["Origin, Content-Type, Accept"],"Cache-Control":["private, max-age=0, no-cache, no-store"],"Pragma":["no-cache"],"Vary":["Accept-Encoding"],"Strict-Transport-Security":["max-age=31536000"]}
Data: {"id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","name":"mahindrausa"}
Status Code: 200
 [debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.4.1 (php_version=5.6.23&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/ab90e9df-e9cc-4667-9cd8-ffa699bf270c?site_state=true
Method: GET
Body: null
 [debug] #### RESPONSE ####
Headers: {"Server":["nginx"],"Date":["Mon, 07 Aug 2017 12:48:25 GMT"],"Content-Type":["application\/json"],"Content-Length":["3456"],"Connection":["keep-alive"],"X-Pantheon-Trace-Id":["b3a985e0-7b6e-11e7-a044-ef8fba39aebc"],"X-Frame-Options":["deny"],"Access-Control-Allow-Methods":["GET"],"Access-Control-Allow-Headers":["Origin, Content-Type, Accept"],"Cache-Control":["private, max-age=0, no-cache, no-store"],"Pragma":["no-cache"],"Vary":["Accept-Encoding"],"Strict-Transport-Security":["max-age=31536000"]}
Data: {"allow_cacheserver":true,"created":1499337653,"created_by_user_id":"a05ff5f4-abbb-453e-83ed-575cd416c531","current_num_domains":1,"drush_version":8,"framework":"drupal","holder_id":"d8b16162-abbd-8524-cc96-7ce71725472c","holder_type":"organization","instrument":"c26be057-83f2-78d4-d717-61f519920320","last_code_push":{"timestamp":"2017-08-07T10:31:06","user_uuid":"a05ff5f4-abbb-453e-83ed-575cd416c531"},"name":"mahindrausa","organization":"d8b16162-abbd-8524-cc96-7ce71725472c","owner":"5fd3abd1-eee3-4cea-8806-b042d194e468","php_version":"55","preferred_zone":"us-central1","purchased_at":1499699522,"service_level":"elite","service_level_updated_at":1499699522,"upstream":{"url":"git:\/\/github.com\/pantheon-systems\/drops-7.git","product_id":"21e1fada-199c-492b-97bd-0b36b53a9da0","branch":"master"},"label":"mahindrausa","id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","holder":{"instrument":"c26be057-83f2-78d4-d717-61f519920320","maxdevsites":"2","name":"Mahindra","id":"d8b16162-abbd-8524-cc96-7ce71725472c","key":"d8b16162-abbd-8524-cc96-7ce71725472c","service_level":"enterprise","org_logo_height":85,"machine_name":"mahindra","org_logo_width":85,"has_multidev":false,"support_plan":"regular_support","show_org_name_header":"yes","base_domain":null,"requires_onboarding":false,"has_change_management":false,"profile":{"machine_name":"mahindra","change_service_url":null,"name":"Mahindra","email_domain":null,"org_logo_width":85,"org_logo_height":85,"base_domain":null,"billing_url":null,"terms_of_service":null,"org_logo":null},"use_org_instrument":true,"settings":{"service_level":"enterprise","use_org_instrument":true,"show_org_name_header":"yes","base_domain":null,"discoverable":false,"email_domain":null}},"settings":{"allow_domains":true,"max_num_cdes":10,"stunnel":false,"min_backups":0,"owner":"5fd3abd1-eee3-4cea-8806-b042d194e468","secure_runtime_access":false,"label":"mahindrausa","allow_indexserver":false,"created_by_user_id":"a05ff5f4-abbb-453e-83ed-575cd416c531","failover_appserver":0,"pingdom":0,"cacheserver":1,"support_plan":"regular_support","appserver":1,"on_server_development":false,"drush_version":8,"current_num_domains":1,"instrument":"c26be057-83f2-78d4-d717-61f519920320","allow_read_slaves":false,"indexserver":1,"php_version":"55","php_channel":"stable","allow_cacheserver":true,"ssl_enabled":null,"service_level":"elite","dedicated_ip":null,"dbserver":1,"purchased_at":1499699522,"framework":"drupal","max_total_domains":200,"upstream":{"url":"git:\/\/github.com\/pantheon-systems\/drops-7.git","product_id":"21e1fada-199c-492b-97bd-0b36b53a9da0","branch":"master"},"guilty_of_abuse":null,"preferred_zone":"us-central1","pingdom_chance":0,"holder_id":"d8b16162-abbd-8524-cc96-7ce71725472c","name":"mahindrausa","created":1499337653,"max_backups":7,"holder_type":"organization","replica_verification_strategy":"pt-heartbeat","organization":"d8b16162-abbd-8524-cc96-7ce71725472c","pingdom_manually_enabled":false,"service_level_updated_at":1499699522,"last_code_push":{"timestamp":"2017-08-07T10:31:06","user_uuid":"a05ff5f4-abbb-453e-83ed-575cd416c531"}},"base_domain":null,"attributes":{"hostname_limit":true,"label":"mahindrausa","m3_ui":true},"add_ons":[{"id":"NewRelic","label":"New Relic"}]}
Status Code: 200
 [debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.4.1 (php_version=5.6.23&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/ab90e9df-e9cc-4667-9cd8-ffa699bf270c/environments
Method: GET
Body: null
 [debug] #### RESPONSE ####
Headers: {"Server":["nginx"],"Date":["Mon, 07 Aug 2017 12:48:25 GMT"],"Content-Type":["application\/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Connection":["keep-alive"],"X-Pantheon-Trace-Id":["b43460c0-7b6e-11e7-998e-2ff03c500444"],"X-Frame-Options":["deny"],"Access-Control-Allow-Methods":["GET"],"Access-Control-Allow-Headers":["Origin, Content-Type, Accept"],"Cache-Control":["private, max-age=0, no-cache, no-store"],"Pragma":["no-cache"],"Vary":["Accept-Encoding"],"Strict-Transport-Security":["max-age=31536000"]}
Data: {"test":{"styx_clusters_for_cache_clear":["styx-03.pantheon.io","styx-1-gcp-fastly-stub.pantheon.io","edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-02.pantheon.io","styx-fe2.pantheon.io","styx-yolo.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"environment_created":1499337655,"dns_zone":"pantheonsite.io","randseed":"Y9J8DKACI84WIKULY1E0QXI8HF3KDGOZ","styx_cluster":"styx-fe4.pantheon.io","target_commit":"10fc7e95a457c3f6ddfa9ee86f6be0625c608d0c","target_ref":"refs\/tags\/pantheon_test_8","php_version":"53","lock":{"username":"mahindrausa","password":"mahindrausa","locked":true},"environment_variables":{"drush_version":7,"php_version":5.3},"drush_version":7},"cam-test":{"watchers":1,"styx_clusters_for_cache_clear":["styx-03.pantheon.io","styx-1-gcp-fastly-stub.pantheon.io","edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-02.pantheon.io","styx-fe2.pantheon.io","styx-yolo.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"diffstat":{},"on_server_development":false,"environment_created":1501611592,"dns_zone":"pantheonsite.io","randseed":"37DJN360F97C2QE4OTDOY043YPG73OOX","styx_cluster":"styx-fe4.pantheon.io","target_commit":"afee04ccc51e3b0abf009706311ac4a3d746fda5","target_ref":"refs\/heads\/cam-test","php_version":"53","lock":{"username":null,"password":null,"locked":false},"environment_variables":{"drush_version":7,"php_version":5.3},"drush_version":7},"dev":{"quicksilver_configuration":{},"watchers":0,"styx_clusters_for_cache_clear":["styx-03.pantheon.io","styx-1-gcp-fastly-stub.pantheon.io","edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-02.pantheon.io","styx-fe2.pantheon.io","styx-yolo.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"diffstat":{},"on_server_development":false,"environment_created":1499337654,"dns_zone":"pantheonsite.io","randseed":"A37NCGWEOE5PEIZCR9FK2FLEWHFB6QA2","styx_cluster":"styx-fe4.pantheon.io","target_commit":"10fc7e95a457c3f6ddfa9ee86f6be0625c608d0c","target_ref":"refs\/heads\/master","php_version":"53","lock":{"username":"mahindrausa","password":"mahindrausa","locked":true},"environment_variables":{"drush_version":7,"php_version":5.3},"drush_version":7},"live":{"pingdom":1,"styx_clusters_for_cache_clear":["styx-03.pantheon.io","styx-1-gcp-fastly-stub.pantheon.io","edge.live.getpantheon.com","styx-fe1.pantheon.io","styx-02.pantheon.io","styx-fe2.pantheon.io","styx-yolo.pantheon.io","styx-fe4.pantheon.io","styx-fe3.pantheon.io","styx-01.pantheon.io"],"environment_created":1499337655,"dns_zone":"pantheonsite.io","randseed":"B87MOG8FG10NHJSKBG0X1D3RISPGVB00","styx_cluster":"styx-fe4.pantheon.io","target_commit":"10fc7e95a457c3f6ddfa9ee86f6be0625c608d0c","target_ref":"refs\/tags\/pantheon_live_8","php_version":"53","lock":{"username":null,"password":null,"locked":false},"environment_variables":{"drush_version":7,"php_version":5.3},"drush_version":7}}
Status Code: 200
 [debug] #### REQUEST ####
Headers: {"Content-type":"application\/json","User-Agent":"Terminus\/1.4.1 (php_version=5.6.23&script=bin\/terminus)","Authorization":"**HIDDEN**"}
URI: https://terminus.pantheon.io:443/api/sites/ab90e9df-e9cc-4667-9cd8-ffa699bf270c/environments/live/hostnames?hydrate=recommendations
Method: GET
Body: null
 [debug] #### RESPONSE ####
Headers: {"Server":["nginx"],"Date":["Mon, 07 Aug 2017 12:48:30 GMT"],"Content-Type":["application\/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Connection":["keep-alive"],"X-Pantheon-Trace-Id":["b4ba3290-7b6e-11e7-9117-634dbdc8e4a9"],"X-Frame-Options":["deny"],"Access-Control-Allow-Methods":["GET"],"Access-Control-Allow-Headers":["Origin, Content-Type, Accept"],"Cache-Control":["private, max-age=0, no-cache, no-store"],"Pragma":["no-cache"],"Vary":["Accept-Encoding"],"Strict-Transport-Security":["max-age=31536000"]}
Data: [{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"fr.mahindracanada.ca","key":"fr.mahindracanada.ca","status":"processing","status_message":"Provisioning","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":false,"public_resolver_matches":[{"Address":"208.67.222.222","Match":true,"Provider":"OpenDNS"},{"Address":"216.146.35.35","Match":true,"Provider":"Dyn"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io","detected_value":"mahindra-frca.onelink-translations.com"}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"completed","message":"Ownership check completed","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"disabled","message":"","type":"dns","alert":{"body":"Login to your DNS host and update your DNS configuration to match the provided required values.","header":"Point fr.mahindracanada.ca at Pantheon's Global CDN"}},{"status":"processing","message":"","type":"https","alert":{"body":"Once your domain's HTTPS certificate is provisioned, we will provide you the DNS records to configure your domain. This process can take up to an hour.","header":"Ownership successfully proven - HTTPS is now provisioning"}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"mahindracanada.ca","key":"mahindracanada.ca","status":"processing","status_message":"Provisioning","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":true,"public_resolver_matches":[{"Address":"208.67.220.220","Match":true,"Provider":"OpenDNS"},{"Address":"8.8.8.8","Match":true,"Provider":"Google"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"A","target_value":"23.185.0.4","detected_value":"104.239.141.153"},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"completed","message":"Ownership check completed","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"disabled","message":"","type":"dns","alert":{"body":"We detected legacy DNS records for <code>mahindracanada.ca<\/code>. Visit your DNS provider to configure DNS records to match the required values given below.","header":"Update DNS for 2x site performance + Free, Automated HTTPS"}},{"status":"processing","message":"","type":"https","alert":{"body":"Once your domain's HTTPS certificate is provisioned, we will provide you the DNS records to configure your domain. This process can take up to an hour.","header":"Ownership successfully proven - HTTPS is now provisioning"}}]},{"dns_zone_name":"pantheonsite.io","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"platform","id":"live-mahindrausa.pantheonsite.io","key":"live-mahindrausa.pantheonsite.io","status":"ok","status_message":"Launched","deletable":false},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"mahindrafinanceusa.com","key":"mahindrafinanceusa.com","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":true,"public_resolver_matches":[{"Address":"8.8.8.8","Match":true,"Provider":"Google"},{"Address":"209.244.0.4","Match":true,"Provider":"Level3"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"A","target_value":"23.185.0.4","detected_value":"104.239.141.153"},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"We detected legacy DNS records for <code>mahindrafinanceusa.com<\/code>. Visit your DNS provider to configure DNS records to match the required values given below.","header":"Update DNS for 2x site performance + Free, Automated HTTPS"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"www.mahindrausa.com","key":"www.mahindrausa.com","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":false,"public_resolver_matches":[{"Address":"216.146.36.36","Match":true,"Provider":"Dyn"},{"Address":"208.67.222.222","Match":true,"Provider":"OpenDNS"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io","detected_value":"mahindrausa.com"}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"Login to your DNS host and update your DNS configuration to match the provided required values.","header":"Point www.mahindrausa.com at Pantheon's Global CDN"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"www.concessionnairesmahindraquebec.ca","key":"www.concessionnairesmahindraquebec.ca","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":false,"public_resolver_matches":[{"Address":"208.67.220.220","Match":true,"Provider":"OpenDNS"},{"Address":"208.67.222.222","Match":true,"Provider":"OpenDNS"}],"help_message":"We detected GoDaddy as the DNS provider for this domain. View our <a href='https:\/\/pantheon.io\/docs\/godaddy\/', target=_blank>GoDaddy Domain Configuration guide<\/a> for help configuring DNS records for this domain.","dns_provider":"GoDaddy","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io","detected_value":"mahindra-frca.onelink-translations.com"}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"Login to GoDaddy and update your DNS configuration to match the provided required values.","header":"Point www.concessionnairesmahindraquebec.ca at Pantheon's Global CDN"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"www.mahindrafinanceusa.com","key":"www.mahindrafinanceusa.com","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":false,"public_resolver_matches":[{"Address":"208.67.222.222","Match":true,"Provider":"OpenDNS"},{"Address":"208.67.220.220","Match":true,"Provider":"OpenDNS"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io","detected_value":"mahindrafinanceusa.com"}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"Login to your DNS host and update your DNS configuration to match the provided required values.","header":"Point www.mahindrafinanceusa.com at Pantheon's Global CDN"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"mahindrausa.com","key":"mahindrausa.com","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":true,"public_resolver_matches":[{"Address":"209.244.0.4","Match":true,"Provider":"Level3"},{"Address":"216.146.36.36","Match":true,"Provider":"Dyn"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"A","target_value":"23.185.0.4","detected_value":"104.239.141.153"},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"We detected legacy DNS records for <code>mahindrausa.com<\/code>. Visit your DNS provider to configure DNS records to match the required values given below.","header":"Update DNS for 2x site performance + Free, Automated HTTPS"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"quebecmahindradealers.clients.dealerspike.net","key":"quebecmahindradealers.clients.dealerspike.net","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":false,"public_resolver_matches":[{"Address":"8.8.4.4","Match":true,"Provider":"Google"},{"Address":"216.146.35.35","Match":true,"Provider":"Dyn"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Remove this detected record","type":"A","target_value":"","detected_value":"199.87.230.91"},{"status":"action_required","status_message":"Add this required record","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io","detected_value":""}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"Login to your DNS host and update your DNS configuration to match the provided required values.","header":"Point quebecmahindradealers.clients.dealerspike.net at Pantheon's Global CDN"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"build.mahindrausa.com","key":"build.mahindrausa.com","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":true,"public_resolver_matches":[{"Address":"8.8.8.8","Match":true,"Provider":"Google"},{"Address":"216.146.35.35","Match":true,"Provider":"Dyn"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Remove this detected record","type":"A","target_value":"","detected_value":"104.239.141.153"},{"status":"action_required","status_message":"Add this required record","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io","detected_value":""}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"We detected legacy DNS records for <code>build.mahindrausa.com<\/code>. Visit your DNS provider to configure DNS records to match the required values given below.","header":"Update DNS for 2x site performance + Free, Automated HTTPS"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"concessionnairesmahindraquebec.ca","key":"concessionnairesmahindraquebec.ca","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":false,"public_resolver_matches":[{"Address":"8.8.4.4","Match":false,"Provider":"Google"},{"Address":"216.146.35.35","Match":true,"Provider":"Dyn"}],"help_message":"We detected GoDaddy as the DNS provider for this domain. View our <a href='https:\/\/pantheon.io\/docs\/godaddy\/', target=_blank>GoDaddy Domain Configuration guide<\/a> for help configuring DNS records for this domain.","dns_provider":"GoDaddy","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"A","target_value":"23.185.0.4","detected_value":"50.63.202.62"},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"action_required","status_message":"Add this required record","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"Login to GoDaddy and update your DNS configuration to match the provided required values.","header":"Point concessionnairesmahindraquebec.ca at Pantheon's Global CDN"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]},{"dns_zone_name":"","environment":"live","site_id":"ab90e9df-e9cc-4667-9cd8-ffa699bf270c","type":"custom","id":"www.mahindracanada.ca","key":"www.mahindracanada.ca","status":"action_required","status_message":"Setup Required","deletable":true,"routing_status_details":{"routes_to_legacy_edge":true},"service_level":"elite","dns_status_details":{"HasLegacyRecords":false,"public_resolver_matches":[{"Address":"208.67.220.220","Match":true,"Provider":"OpenDNS"},{"Address":"209.244.0.4","Match":true,"Provider":"Level3"}],"help_message":"For more information about configuring DNS records, view our <a href='https:\/\/pantheon.io\/docs\/guides\/launch\/configure-dns\/', target=_blank>documentation on Domains & HTTPS<\/a>.","dns_provider":"Unknown Provider","HasSomeMatching":false,"dns_records":[{"status":"action_required","status_message":"Update to required value","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io","detected_value":"mahindracanada.ca"}]},"RecheckCount":0,"target_dns":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"EnvStyxClusterRecords":[{"status":"","status_message":"","type":"A","target_value":"23.185.0.4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8000::4","detected_value":""},{"status":"","status_message":"","type":"AAAA","target_value":"2620:12a:8001::4","detected_value":""}],"EnvPlatformDomainRecords":[{"status":"","status_message":"","type":"CNAME","target_value":"live-mahindrausa.pantheonsite.io.","detected_value":""}],"ownership_status":{"status":"not_required","message":"Ownership check not required","verification_file_name":"","verification_file_link":""},"statuses":[{"status":"action_required","message":"","type":"dns","alert":{"body":"Login to your DNS host and update your DNS configuration to match the provided required values.","header":"Point www.mahindracanada.ca at Pantheon's Global CDN"}},{"status":"action_required","message":"HTTPS will be ready within an hour after the domains successfully routes traffic to Pantheon","type":"https","alert":{"body":"","header":""}}]}]
Status Code: 200
PHP Warning:  array_map(): Argument #2 should be an array in /Users/vitaly/Tools/terminus/src/Commands/Domain/DNSCommand.php on line 47

...

Warning: array_merge(): Argument #1 is not an array in /Users/vitaly/Tools/terminus/src/Commands/Domain/DNSCommand.php on line 47
 [error]  Passed variable is not an array or object, using empty array instead 

Steps to reproduce the behavior

Run terminus domain:dns

Terminus info:

terminus self:info
 ------------------------- -------------------------------------------------------------------------------------------------- 
  PHP binary                /usr/local/Cellar/php56/5.6.23/bin/php                                                            
  PHP version               5.6.23                                                                                            
  php.ini used              /usr/local/etc/php/5.6/php.ini                                                                    
  Terminus project config                                                                                                     
  Terminus root dir         /Users/vitaly/Tools/terminus                                                                      
  Terminus version          1.4.1                                                                                             
  Operating system          Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64  
 ------------------------- -------------------------------------------------------------------------------------------------- 
TeslaDethray commented 7 years ago

@ioskevich Thanks for bringing this up - this was a piece of cake to duplicate. I will push a fix today.

Entered in Pantheon's JIRA as BUGS-1474

TeslaDethray commented 7 years ago

After digging into this issue, it seems that the problem lies at the API level - although the Terminus API request has not changed, suddenly the hydration of DNS records is not being heeded. I'll leave this issue open to check back in about the status of this issue. @ioskevich

TeslaDethray commented 7 years ago

@ioskevich I've tracked the change that broke this command down in the API and we're on the case.