2024-09-13 19:25:24,841 - INFO - Domain Default found not creating
2024-09-13 19:25:25,077 - INFO - Project ctest-TestBasicPolicy-08628671 not found, creating it
2024-09-13 19:25:25,615 - INFO - Created Project:ctest-TestBasicPolicy-08628671, ID : ee88b943-5da2-4da4-ad50-7a8d3023f6d6
2024-09-13 19:25:27,078 - INFO - ================================================================================
2024-09-13 19:25:27,078 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-13 19:25:27,078 - 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-13 19:25:27,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with
2024-09-13 19:25:27,333 - INFO - Initial checks done. Running the testcase now
2024-09-13 19:25:27,333 - INFO -
2024-09-13 19:25:27,912 - DEBUG - Response for create_network : {'network': {'id': '2bc87139-33c6-4314-8e30-42f210d400bd', 'name': 'ctest-vn-00013918', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-00013918'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 19:25:28,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '78db8f02-969f-4bce-b868-71cc704b4668', 'name': '', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'network_id': '2bc87139-33c6-4314-8e30-42f210d400bd', 'ip_version': 4, 'cidr': '221.249.199.128/26', 'allocation_pools': [{'start': '221.249.199.130', 'end': '221.249.199.190'}], 'gateway_ip': '221.249.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.249.199.130', 'tags': [], 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6'}}
2024-09-13 19:25:28,173 - INFO - Created VN ctest-vn-00013918
2024-09-13 19:25:28,231 - DEBUG - VN ctest-vn-00013918 UUID is 2bc87139-33c6-4314-8e30-42f210d400bd
2024-09-13 19:25:28,550 - DEBUG - Response for create_network : {'network': {'id': 'f44f0246-dae9-4199-a5d5-f05e25608688', 'name': 'ctest-vn-71964076', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-71964076'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 19:25:28,772 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6c80d7b-c894-468d-9d7b-1d85b6d66ca2', 'name': '', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'network_id': 'f44f0246-dae9-4199-a5d5-f05e25608688', 'ip_version': 4, 'cidr': '108.38.102.128/26', 'allocation_pools': [{'start': '108.38.102.130', 'end': '108.38.102.190'}], 'gateway_ip': '108.38.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.38.102.130', 'tags': [], 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6'}}
2024-09-13 19:25:28,792 - INFO - Created VN ctest-vn-71964076
2024-09-13 19:25:28,851 - DEBUG - VN ctest-vn-71964076 UUID is f44f0246-dae9-4199-a5d5-f05e25608688
2024-09-13 19:25:28,973 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918, 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-08628671:ctest-vn-71964076, 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-13 19:25:29,296 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bc87139-33c6-4314-8e30-42f210d400bd', 'name': 'ctest-vn-00013918', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78db8f02-969f-4bce-b868-71cc704b4668'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-00013918'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598']], 'subnet_ipam': [{'subnet_cidr': '221.249.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 19:25:29,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f44f0246-dae9-4199-a5d5-f05e25608688', 'name': 'ctest-vn-71964076', 'tenant_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'project_id': 'ee88b9435da24da4ad507a8d3023f6d6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6c80d7b-c894-468d-9d7b-1d85b6d66ca2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-vn-71964076'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598']], 'subnet_ipam': [{'subnet_cidr': '108.38.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 19:25:29,743 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-13 19:25:30,040 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-13 19:25:30,074 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd
2024-09-13 19:25:30,091 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6
2024-09-13 19:25:30,178 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd
2024-09-13 19:25:30,199 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd
2024-09-13 19:25:30,218 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb
2024-09-13 19:25:30,229 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb
2024-09-13 19:25:30,240 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ffa67d58-5233-4bcc-9382-1fa2fc882d03
2024-09-13 19:25:30,249 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 19:25:30,249 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd
2024-09-13 19:25:30,268 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb
2024-09-13 19:25:30,293 - INFO - Verified VN network id 7 for VN 2bc87139-33c6-4314-8e30-42f210d400bd
2024-09-13 19:25:30,293 - INFO - Verifications in API Server for VN ctest-vn-00013918 passed
2024-09-13 19:25:30,293 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd
2024-09-13 19:25:30,307 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb
2024-09-13 19:25:30,317 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5dc74ca0-91ca-411e-b7e9-b25f88d8c6eb
2024-09-13 19:25:30,327 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ffa67d58-5233-4bcc-9382-1fa2fc882d03
2024-09-13 19:25:30,343 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08628671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3154896029468738324', 'uuid-lslong': '10245762759699726525'}, 'enable': 'true', 'created': '2024-09-13T19:25:27', 'last-modified': '2024-09-13T19:25:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073965'}
2024-09-13 19:25:30,350 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 19:25:30,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00013918 passed
2024-09-13 19:25:30,350 - DEBUG - ====Verifying policy data for ctest-vn-00013918 in API_Server ======
2024-09-13 19:25:30,350 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-13 19:25:30,356 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd
2024-09-13 19:25:30,369 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6
2024-09-13 19:25:30,465 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2bc87139-33c6-4314-8e30-42f210d400bd
2024-09-13 19:25:30,482 - DEBUG - ==>Verifying data for policy with id: a413e4b5-e2d8-4324-b5f3-c4f93ed78ce8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598']
2024-09-13 19:25:30,482 - INFO - VN ctest-vn-00013918 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 19:25:30,482 - DEBUG - Verifying the vn in opserver
2024-09-13 19:25:30,482 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918 virtual network link through opserver 10.0.0.33
2024-09-13 19:25:30,482 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-13 19:25:30,777 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-13 19:25:30,841 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918?flat'}
2024-09-13 19:25:30,841 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-00013918 is found in opserver
2024-09-13 19:25:30,851 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 19:25:30,856 - DEBUG - VRF ids for VN ctest-vn-00013918: {}
2024-09-13 19:25:30,856 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-13 19:25:30,862 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd
2024-09-13 19:25:30,875 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6
2024-09-13 19:25:30,955 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688
2024-09-13 19:25:30,972 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688
2024-09-13 19:25:30,985 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f
2024-09-13 19:25:30,994 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f
2024-09-13 19:25:31,003 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1542b13-7b0e-474d-8129-8c1428ee2c7c
2024-09-13 19:25:31,012 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 19:25:31,012 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688
2024-09-13 19:25:31,027 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f
2024-09-13 19:25:31,046 - INFO - Verified VN network id 8 for VN f44f0246-dae9-4199-a5d5-f05e25608688
2024-09-13 19:25:31,047 - INFO - Verifications in API Server for VN ctest-vn-71964076 passed
2024-09-13 19:25:31,047 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688
2024-09-13 19:25:31,063 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f
2024-09-13 19:25:31,071 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c60ebc4f-778a-42a4-8236-3e6b205a7b3f
2024-09-13 19:25:31,080 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1542b13-7b0e-474d-8129-8c1428ee2c7c
2024-09-13 19:25:31,093 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08628671', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17604291971758244249', 'uuid-lslong': '11949721473442154120'}, 'enable': 'true', 'created': '2024-09-13T19:25:28', 'last-modified': '2024-09-13T19:25:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566165'}
2024-09-13 19:25:31,100 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 19:25:31,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71964076 passed
2024-09-13 19:25:31,100 - DEBUG - ====Verifying policy data for ctest-vn-71964076 in API_Server ======
2024-09-13 19:25:31,100 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-13 19:25:31,107 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d74b3ca9-fc8d-469e-90d1-287ef94e05bd
2024-09-13 19:25:31,120 - DEBUG - Requesting: http://10.0.0.33:8082/project/ee88b943-5da2-4da4-ad50-7a8d3023f6d6
2024-09-13 19:25:31,194 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f44f0246-dae9-4199-a5d5-f05e25608688
2024-09-13 19:25:31,207 - DEBUG - ==>Verifying data for policy with id: a413e4b5-e2d8-4324-b5f3-c4f93ed78ce8, fqn: ['default-domain', 'ctest-TestBasicPolicy-08628671', 'ctest-policy-allow-all-98402598']
2024-09-13 19:25:31,207 - INFO - VN ctest-vn-71964076 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 19:25:31,207 - DEBUG - Verifying the vn in opserver
2024-09-13 19:25:31,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076 virtual network link through opserver 10.0.0.33
2024-09-13 19:25:31,207 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-13 19:25:31,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076?flat'}
2024-09-13 19:25:31,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08628671:ctest-vn-71964076 is found in opserver
2024-09-13 19:25:31,229 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 19:25:31,234 - DEBUG - VRF ids for VN ctest-vn-71964076: {}
2024-09-13 19:25:31,286 - DEBUG - Services list from nova: [