2024-09-19 21:56:14,791 - INFO - Domain Default found not creating
2024-09-19 21:56:14,966 - INFO - Project ctest-TestBasicPolicy-59430375 not found, creating it
2024-09-19 21:56:15,467 - INFO - Created Project:ctest-TestBasicPolicy-59430375, ID : 7705af86-5ce8-4256-9482-1f316432d2e5
2024-09-19 21:56:16,968 - INFO - ================================================================================
2024-09-19 21:56:16,968 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-19 21:56:16,968 - 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-19 21:56:17,222 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.13': '0'}} with
2024-09-19 21:56:17,222 - INFO - Initial checks done. Running the testcase now
2024-09-19 21:56:17,222 - INFO -
2024-09-19 21:56:17,789 - DEBUG - Response for create_network : {'network': {'id': 'd6ff16d7-89df-4ae8-8d66-3229f8d87ef5', 'name': 'ctest-vn-69977883', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-69977883'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 21:56:17,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '390fdcee-03a7-4e4b-92c0-57130a410031', 'name': '', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'network_id': 'd6ff16d7-89df-4ae8-8d66-3229f8d87ef5', 'ip_version': 4, 'cidr': '115.182.185.192/26', 'allocation_pools': [{'start': '115.182.185.194', 'end': '115.182.185.254'}], 'gateway_ip': '115.182.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.182.185.194', 'tags': [], 'project_id': '7705af865ce8425694821f316432d2e5'}}
2024-09-19 21:56:17,993 - INFO - Created VN ctest-vn-69977883
2024-09-19 21:56:18,052 - DEBUG - VN ctest-vn-69977883 UUID is d6ff16d7-89df-4ae8-8d66-3229f8d87ef5
2024-09-19 21:56:18,375 - DEBUG - Response for create_network : {'network': {'id': 'e4d96ee9-f84f-46f5-abb8-baa8668f3ca4', 'name': 'ctest-vn-72022455', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-72022455'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 21:56:18,571 - DEBUG - Response for create_subnet : {'subnet': {'id': '9969c978-d413-4334-b655-c1802650ad69', 'name': '', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'network_id': 'e4d96ee9-f84f-46f5-abb8-baa8668f3ca4', 'ip_version': 4, 'cidr': '200.112.25.192/26', 'allocation_pools': [{'start': '200.112.25.194', 'end': '200.112.25.254'}], 'gateway_ip': '200.112.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.112.25.194', 'tags': [], 'project_id': '7705af865ce8425694821f316432d2e5'}}
2024-09-19 21:56:18,589 - INFO - Created VN ctest-vn-72022455
2024-09-19 21:56:18,648 - DEBUG - VN ctest-vn-72022455 UUID is e4d96ee9-f84f-46f5-abb8-baa8668f3ca4
2024-09-19 21:56:18,769 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883, 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-59430375:ctest-vn-72022455, 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-19 21:56:19,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6ff16d7-89df-4ae8-8d66-3229f8d87ef5', 'name': 'ctest-vn-69977883', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['390fdcee-03a7-4e4b-92c0-57130a410031'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-69977883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282']], 'subnet_ipam': [{'subnet_cidr': '115.182.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 21:56:19,386 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4d96ee9-f84f-46f5-abb8-baa8668f3ca4', 'name': 'ctest-vn-72022455', 'tenant_id': '7705af865ce8425694821f316432d2e5', 'project_id': '7705af865ce8425694821f316432d2e5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9969c978-d413-4334-b655-c1802650ad69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-vn-72022455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282']], 'subnet_ipam': [{'subnet_cidr': '200.112.25.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 21:56:19,544 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-19 21:56:19,843 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-19 21:56:19,888 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63
2024-09-19 21:56:19,903 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5
2024-09-19 21:56:20,142 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5
2024-09-19 21:56:20,161 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5
2024-09-19 21:56:20,218 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907
2024-09-19 21:56:20,247 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907
2024-09-19 21:56:20,261 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a626d74a-37bb-47e5-872c-789805b66dcc
2024-09-19 21:56:20,278 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 21:56:20,278 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5
2024-09-19 21:56:20,303 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907
2024-09-19 21:56:20,353 - INFO - Verified VN network id 9 for VN d6ff16d7-89df-4ae8-8d66-3229f8d87ef5
2024-09-19 21:56:20,353 - INFO - Verifications in API Server for VN ctest-vn-69977883 passed
2024-09-19 21:56:20,353 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5
2024-09-19 21:56:20,370 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907
2024-09-19 21:56:20,384 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/fa1e0aa5-1f7d-4ab5-9fde-a24d16bb9907
2024-09-19 21:56:20,393 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a626d74a-37bb-47e5-872c-789805b66dcc
2024-09-19 21:56:20,410 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59430375', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15492126358164687592', 'uuid-lslong': '10188886362822311669'}, 'enable': 'true', 'created': '2024-09-19T21:56:17', 'last-modified': '2024-09-19T21:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354440'}
2024-09-19 21:56:20,432 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 21:56:20,433 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69977883 passed
2024-09-19 21:56:20,433 - DEBUG - ====Verifying policy data for ctest-vn-69977883 in API_Server ======
2024-09-19 21:56:20,433 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-19 21:56:20,448 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63
2024-09-19 21:56:20,469 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5
2024-09-19 21:56:20,572 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/d6ff16d7-89df-4ae8-8d66-3229f8d87ef5
2024-09-19 21:56:20,599 - DEBUG - ==>Verifying data for policy with id: 42c6a04e-3661-44b7-a9d3-adc9e519c358, fqn: ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282']
2024-09-19 21:56:20,599 - INFO - VN ctest-vn-69977883 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 21:56:20,599 - DEBUG - Verifying the vn in opserver
2024-09-19 21:56:20,599 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883 virtual network link through opserver 10.0.0.28
2024-09-19 21:56:20,599 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-19 21:56:20,927 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-19 21:56:20,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883?flat'}
2024-09-19 21:56:20,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-69977883 is found in opserver
2024-09-19 21:56:21,005 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 21:56:21,010 - DEBUG - VRF ids for VN ctest-vn-69977883: {}
2024-09-19 21:56:21,010 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-19 21:56:21,017 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63
2024-09-19 21:56:21,038 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5
2024-09-19 21:56:21,124 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4
2024-09-19 21:56:21,140 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4
2024-09-19 21:56:21,153 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f
2024-09-19 21:56:21,163 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f
2024-09-19 21:56:21,172 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/7c8b8266-93e8-416a-a893-d1890e84abd3
2024-09-19 21:56:21,179 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 21:56:21,179 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4
2024-09-19 21:56:21,194 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f
2024-09-19 21:56:21,217 - INFO - Verified VN network id 10 for VN e4d96ee9-f84f-46f5-abb8-baa8668f3ca4
2024-09-19 21:56:21,217 - INFO - Verifications in API Server for VN ctest-vn-72022455 passed
2024-09-19 21:56:21,217 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4
2024-09-19 21:56:21,235 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f
2024-09-19 21:56:21,245 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/60be5535-1b1d-4929-a3b0-10dba93c380f
2024-09-19 21:56:21,254 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/7c8b8266-93e8-416a-a893-d1890e84abd3
2024-09-19 21:56:21,268 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59430375', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16490333461766162165', 'uuid-lslong': '12373845208638373028'}, 'enable': 'true', 'created': '2024-09-19T21:56:18', 'last-modified': '2024-09-19T21:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.956118'}
2024-09-19 21:56:21,274 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 21:56:21,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72022455 passed
2024-09-19 21:56:21,275 - DEBUG - ====Verifying policy data for ctest-vn-72022455 in API_Server ======
2024-09-19 21:56:21,275 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-19 21:56:21,281 - DEBUG - Requesting: http://10.0.0.28:8082/domain/12c8fc9f-871f-460f-9e58-5706cfbc9a63
2024-09-19 21:56:21,299 - DEBUG - Requesting: http://10.0.0.28:8082/project/7705af86-5ce8-4256-9482-1f316432d2e5
2024-09-19 21:56:21,375 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e4d96ee9-f84f-46f5-abb8-baa8668f3ca4
2024-09-19 21:56:21,388 - DEBUG - ==>Verifying data for policy with id: 42c6a04e-3661-44b7-a9d3-adc9e519c358, fqn: ['default-domain', 'ctest-TestBasicPolicy-59430375', 'ctest-policy-allow-all-46067282']
2024-09-19 21:56:21,389 - INFO - VN ctest-vn-72022455 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 21:56:21,389 - DEBUG - Verifying the vn in opserver
2024-09-19 21:56:21,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455 virtual network link through opserver 10.0.0.28
2024-09-19 21:56:21,389 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-19 21:56:21,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455?flat'}
2024-09-19 21:56:21,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59430375:ctest-vn-72022455 is found in opserver
2024-09-19 21:56:21,443 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 21:56:21,450 - DEBUG - VRF ids for VN ctest-vn-72022455: {}
2024-09-19 21:56:21,501 - DEBUG - Services list from nova: [