2024-09-17 16:22:57,851 - INFO - Domain Default found not creating
2024-09-17 16:22:58,043 - INFO - Project ctest-TestBasicPolicy-05777329 not found, creating it
2024-09-17 16:22:58,564 - INFO - Created Project:ctest-TestBasicPolicy-05777329, ID : 9d6a8418-fd14-4d99-8e12-c9eedd4fd976
2024-09-17 16:23:00,334 - INFO - ================================================================================
2024-09-17 16:23:00,334 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 16:23:00,334 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-17 16:23:00,610 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.11': '0'}} with
2024-09-17 16:23:00,611 - INFO - Initial checks done. Running the testcase now
2024-09-17 16:23:00,611 - INFO -
2024-09-17 16:23:01,323 - DEBUG - Response for create_network : {'network': {'id': 'd2c1bd5b-fbc9-4244-804b-2996ab5b23dd', 'name': 'ctest-vn-32604360', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-32604360'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:23:01,595 - DEBUG - Response for create_subnet : {'subnet': {'id': '76a01de4-3f2e-42a4-afaf-2524ea1583ca', 'name': '', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'network_id': 'd2c1bd5b-fbc9-4244-804b-2996ab5b23dd', 'ip_version': 4, 'cidr': '121.187.231.64/26', 'allocation_pools': [{'start': '121.187.231.66', 'end': '121.187.231.126'}], 'gateway_ip': '121.187.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.187.231.66', 'tags': [], 'project_id': '9d6a8418fd144d998e12c9eedd4fd976'}}
2024-09-17 16:23:01,623 - INFO - Created VN ctest-vn-32604360
2024-09-17 16:23:01,685 - DEBUG - VN ctest-vn-32604360 UUID is d2c1bd5b-fbc9-4244-804b-2996ab5b23dd
2024-09-17 16:23:02,030 - DEBUG - Response for create_network : {'network': {'id': '31d80985-66ad-4e66-b31f-ce52053fdc3d', 'name': 'ctest-vn-67673256', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-67673256'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:23:02,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a266b6e-c713-4400-9892-aaea2afc7935', 'name': '', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'network_id': '31d80985-66ad-4e66-b31f-ce52053fdc3d', 'ip_version': 4, 'cidr': '100.183.231.128/26', 'allocation_pools': [{'start': '100.183.231.130', 'end': '100.183.231.190'}], 'gateway_ip': '100.183.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.183.231.130', 'tags': [], 'project_id': '9d6a8418fd144d998e12c9eedd4fd976'}}
2024-09-17 16:23:02,260 - INFO - Created VN ctest-vn-67673256
2024-09-17 16:23:02,317 - DEBUG - VN ctest-vn-67673256 UUID is 31d80985-66ad-4e66-b31f-ce52053fdc3d
2024-09-17 16:23:02,460 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-17 16:23:02,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2c1bd5b-fbc9-4244-804b-2996ab5b23dd', 'name': 'ctest-vn-32604360', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76a01de4-3f2e-42a4-afaf-2524ea1583ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-32604360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788']], 'subnet_ipam': [{'subnet_cidr': '121.187.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:23:03,071 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31d80985-66ad-4e66-b31f-ce52053fdc3d', 'name': 'ctest-vn-67673256', 'tenant_id': '9d6a8418fd144d998e12c9eedd4fd976', 'project_id': '9d6a8418fd144d998e12c9eedd4fd976', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a266b6e-c713-4400-9892-aaea2afc7935'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-vn-67673256'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788']], 'subnet_ipam': [{'subnet_cidr': '100.183.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:23:03,229 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-17 16:23:03,568 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-17 16:23:03,609 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf
2024-09-17 16:23:03,638 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976
2024-09-17 16:23:03,732 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd
2024-09-17 16:23:03,750 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd
2024-09-17 16:23:03,768 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e
2024-09-17 16:23:03,778 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e
2024-09-17 16:23:03,788 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/f9d59d42-c43a-4cfe-9a78-4ac807bbfab4
2024-09-17 16:23:03,797 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 16:23:03,797 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd
2024-09-17 16:23:03,814 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e
2024-09-17 16:23:03,841 - INFO - Verified VN network id 9 for VN d2c1bd5b-fbc9-4244-804b-2996ab5b23dd
2024-09-17 16:23:03,841 - INFO - Verifications in API Server for VN ctest-vn-32604360 passed
2024-09-17 16:23:03,841 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd
2024-09-17 16:23:03,860 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e
2024-09-17 16:23:03,872 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/7a937aba-9627-4436-90f7-f3fd56593c9e
2024-09-17 16:23:03,882 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/f9d59d42-c43a-4cfe-9a78-4ac807bbfab4
2024-09-17 16:23:03,898 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05777329', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15186627621233967684', 'uuid-lslong': '9244528387204785117'}, 'enable': 'true', 'created': '2024-09-17T16:23:01', 'last-modified': '2024-09-17T16:23:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135181'}
2024-09-17 16:23:03,906 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 16:23:03,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32604360 passed
2024-09-17 16:23:03,907 - DEBUG - ====Verifying policy data for ctest-vn-32604360 in API_Server ======
2024-09-17 16:23:03,907 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-17 16:23:03,916 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf
2024-09-17 16:23:03,933 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976
2024-09-17 16:23:04,020 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/d2c1bd5b-fbc9-4244-804b-2996ab5b23dd
2024-09-17 16:23:04,040 - DEBUG - ==>Verifying data for policy with id: 9aa5dc96-1211-4a6f-94e0-275d7ae89c92, fqn: ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788']
2024-09-17 16:23:04,040 - INFO - VN ctest-vn-32604360 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 16:23:04,040 - DEBUG - Verifying the vn in opserver
2024-09-17 16:23:04,040 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360 virtual network link through opserver 10.0.0.54
2024-09-17 16:23:04,041 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-09-17 16:23:04,385 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-09-17 16:23:04,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360?flat'}
2024-09-17 16:23:04,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-32604360 is found in opserver
2024-09-17 16:23:04,479 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 16:23:04,486 - DEBUG - VRF ids for VN ctest-vn-32604360: {}
2024-09-17 16:23:04,486 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-17 16:23:04,495 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf
2024-09-17 16:23:04,514 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976
2024-09-17 16:23:04,616 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d
2024-09-17 16:23:04,639 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d
2024-09-17 16:23:04,660 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5
2024-09-17 16:23:04,675 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5
2024-09-17 16:23:04,686 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a46b7b40-9aa6-410b-8467-3843d6c03301
2024-09-17 16:23:04,695 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 16:23:04,695 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d
2024-09-17 16:23:04,711 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5
2024-09-17 16:23:04,739 - INFO - Verified VN network id 10 for VN 31d80985-66ad-4e66-b31f-ce52053fdc3d
2024-09-17 16:23:04,739 - INFO - Verifications in API Server for VN ctest-vn-67673256 passed
2024-09-17 16:23:04,739 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d
2024-09-17 16:23:04,756 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5
2024-09-17 16:23:04,766 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/1f38ae52-774a-43b8-8956-84ee3ca962d5
2024-09-17 16:23:04,778 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/a46b7b40-9aa6-410b-8467-3843d6c03301
2024-09-17 16:23:04,798 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05777329', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3591631171385904742', 'uuid-lslong': '12907261908737842237'}, 'enable': 'true', 'created': '2024-09-17T16:23:01', 'last-modified': '2024-09-17T16:23:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.755979'}
2024-09-17 16:23:04,806 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 16:23:04,806 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67673256 passed
2024-09-17 16:23:04,806 - DEBUG - ====Verifying policy data for ctest-vn-67673256 in API_Server ======
2024-09-17 16:23:04,806 - DEBUG - Requesting: http://10.0.0.54:8082/domains
2024-09-17 16:23:04,814 - DEBUG - Requesting: http://10.0.0.54:8082/domain/0c405347-3d08-48bd-a819-289297b0cbcf
2024-09-17 16:23:04,835 - DEBUG - Requesting: http://10.0.0.54:8082/project/9d6a8418-fd14-4d99-8e12-c9eedd4fd976
2024-09-17 16:23:04,927 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/31d80985-66ad-4e66-b31f-ce52053fdc3d
2024-09-17 16:23:04,945 - DEBUG - ==>Verifying data for policy with id: 9aa5dc96-1211-4a6f-94e0-275d7ae89c92, fqn: ['default-domain', 'ctest-TestBasicPolicy-05777329', 'ctest-policy-allow-all-46801788']
2024-09-17 16:23:04,945 - INFO - VN ctest-vn-67673256 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 16:23:04,945 - DEBUG - Verifying the vn in opserver
2024-09-17 16:23:04,945 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256 virtual network link through opserver 10.0.0.54
2024-09-17 16:23:04,945 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks
2024-09-17 16:23:04,961 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256?flat'}
2024-09-17 16:23:04,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05777329:ctest-vn-67673256 is found in opserver
2024-09-17 16:23:04,977 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 16:23:04,985 - DEBUG - VRF ids for VN ctest-vn-67673256: {}
2024-09-17 16:23:05,055 - DEBUG - Services list from nova: [