2024-09-13 21:44:46,274 - INFO - Domain Default found not creating
2024-09-13 21:44:46,433 - INFO - Project ctest-TestBasicPolicy-98253417 not found, creating it
2024-09-13 21:44:46,936 - INFO - Created Project:ctest-TestBasicPolicy-98253417, ID : 2a6c1b10-14a1-44b6-b73c-98f01dac1636
2024-09-13 21:44:48,459 - INFO - ================================================================================
2024-09-13 21:44:48,459 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-13 21:44:48,459 - 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 21:44:48,719 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.7': '0'}} with
2024-09-13 21:44:48,720 - INFO - Initial checks done. Running the testcase now
2024-09-13 21:44:48,720 - INFO -
2024-09-13 21:44:49,298 - DEBUG - Response for create_network : {'network': {'id': '2eee4e68-4cb6-4f44-a0af-86265eacc162', 'name': 'ctest-vn-84484465', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-84484465'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 21:44:49,494 - DEBUG - Response for create_subnet : {'subnet': {'id': '861d94cc-60d8-4a1a-a216-6421bf5d92f0', 'name': '', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'network_id': '2eee4e68-4cb6-4f44-a0af-86265eacc162', 'ip_version': 4, 'cidr': '212.105.173.64/26', 'allocation_pools': [{'start': '212.105.173.66', 'end': '212.105.173.126'}], 'gateway_ip': '212.105.173.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.105.173.66', 'tags': [], 'project_id': '2a6c1b1014a144b6b73c98f01dac1636'}}
2024-09-13 21:44:49,513 - INFO - Created VN ctest-vn-84484465
2024-09-13 21:44:49,569 - DEBUG - VN ctest-vn-84484465 UUID is 2eee4e68-4cb6-4f44-a0af-86265eacc162
2024-09-13 21:44:49,892 - DEBUG - Response for create_network : {'network': {'id': '35e63a15-13ff-4adb-a7a2-1582ff5b810f', 'name': 'ctest-vn-91544888', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-91544888'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 21:44:50,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '82f3fd25-a7a9-4980-b256-be20fd9e8975', 'name': '', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'network_id': '35e63a15-13ff-4adb-a7a2-1582ff5b810f', 'ip_version': 4, 'cidr': '25.254.49.0/26', 'allocation_pools': [{'start': '25.254.49.2', 'end': '25.254.49.62'}], 'gateway_ip': '25.254.49.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.254.49.2', 'tags': [], 'project_id': '2a6c1b1014a144b6b73c98f01dac1636'}}
2024-09-13 21:44:50,126 - INFO - Created VN ctest-vn-91544888
2024-09-13 21:44:50,185 - DEBUG - VN ctest-vn-91544888 UUID is 35e63a15-13ff-4adb-a7a2-1582ff5b810f
2024-09-13 21:44:50,313 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465, 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-98253417:ctest-vn-91544888, 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 21:44:50,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2eee4e68-4cb6-4f44-a0af-86265eacc162', 'name': 'ctest-vn-84484465', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['861d94cc-60d8-4a1a-a216-6421bf5d92f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-84484465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220']], 'subnet_ipam': [{'subnet_cidr': '212.105.173.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 21:44:50,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35e63a15-13ff-4adb-a7a2-1582ff5b810f', 'name': 'ctest-vn-91544888', 'tenant_id': '2a6c1b1014a144b6b73c98f01dac1636', 'project_id': '2a6c1b1014a144b6b73c98f01dac1636', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82f3fd25-a7a9-4980-b256-be20fd9e8975'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-vn-91544888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220']], 'subnet_ipam': [{'subnet_cidr': '25.254.49.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 21:44:51,037 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-13 21:44:51,334 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-13 21:44:51,364 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288
2024-09-13 21:44:51,379 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636
2024-09-13 21:44:51,458 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162
2024-09-13 21:44:51,476 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162
2024-09-13 21:44:51,491 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06
2024-09-13 21:44:51,499 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06
2024-09-13 21:44:51,509 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/b6b8c52c-e6c6-47f2-97d2-f468ff919132
2024-09-13 21:44:51,518 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 21:44:51,518 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162
2024-09-13 21:44:51,531 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06
2024-09-13 21:44:51,554 - INFO - Verified VN network id 8 for VN 2eee4e68-4cb6-4f44-a0af-86265eacc162
2024-09-13 21:44:51,554 - INFO - Verifications in API Server for VN ctest-vn-84484465 passed
2024-09-13 21:44:51,554 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162
2024-09-13 21:44:51,569 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06
2024-09-13 21:44:51,579 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/53c65394-6dda-49d0-9dfd-5bc5c3e37f06
2024-09-13 21:44:51,588 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/b6b8c52c-e6c6-47f2-97d2-f468ff919132
2024-09-13 21:44:51,603 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98253417', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3381726580072402756', 'uuid-lslong': '11578620666348093794'}, 'enable': 'true', 'created': '2024-09-13T21:44:49', 'last-modified': '2024-09-13T21:44:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011670'}
2024-09-13 21:44:51,610 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 21:44:51,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84484465 passed
2024-09-13 21:44:51,611 - DEBUG - ====Verifying policy data for ctest-vn-84484465 in API_Server ======
2024-09-13 21:44:51,611 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-13 21:44:51,617 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288
2024-09-13 21:44:51,631 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636
2024-09-13 21:44:51,715 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2eee4e68-4cb6-4f44-a0af-86265eacc162
2024-09-13 21:44:51,730 - DEBUG - ==>Verifying data for policy with id: a763dfbe-b578-430e-8f70-72beb0e50248, fqn: ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220']
2024-09-13 21:44:51,730 - INFO - VN ctest-vn-84484465 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 21:44:51,730 - DEBUG - Verifying the vn in opserver
2024-09-13 21:44:51,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465 virtual network link through opserver 10.0.0.32
2024-09-13 21:44:51,731 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-13 21:44:52,026 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-13 21:44:52,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465?flat'}
2024-09-13 21:44:52,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-84484465 is found in opserver
2024-09-13 21:44:52,100 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 21:44:52,105 - DEBUG - VRF ids for VN ctest-vn-84484465: {}
2024-09-13 21:44:52,105 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-13 21:44:52,111 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288
2024-09-13 21:44:52,124 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636
2024-09-13 21:44:52,210 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f
2024-09-13 21:44:52,229 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f
2024-09-13 21:44:52,244 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476
2024-09-13 21:44:52,253 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476
2024-09-13 21:44:52,263 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/2c1c45cb-1d64-408a-a21d-2681910a7b36
2024-09-13 21:44:52,272 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 21:44:52,272 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f
2024-09-13 21:44:52,289 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476
2024-09-13 21:44:52,314 - INFO - Verified VN network id 9 for VN 35e63a15-13ff-4adb-a7a2-1582ff5b810f
2024-09-13 21:44:52,314 - INFO - Verifications in API Server for VN ctest-vn-91544888 passed
2024-09-13 21:44:52,314 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f
2024-09-13 21:44:52,331 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476
2024-09-13 21:44:52,340 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1030a76f-e99f-4899-ae51-95be1f466476
2024-09-13 21:44:52,349 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/2c1c45cb-1d64-408a-a21d-2681910a7b36
2024-09-13 21:44:52,365 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98253417', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3883855590857853659', 'uuid-lslong': '12079240802935210255'}, 'enable': 'true', 'created': '2024-09-13T21:44:49', 'last-modified': '2024-09-13T21:44:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.542124'}
2024-09-13 21:44:52,372 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 21:44:52,372 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91544888 passed
2024-09-13 21:44:52,372 - DEBUG - ====Verifying policy data for ctest-vn-91544888 in API_Server ======
2024-09-13 21:44:52,372 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-13 21:44:52,378 - DEBUG - Requesting: http://10.0.0.32:8082/domain/98c31e05-f158-44b0-8ab3-fffe933d5288
2024-09-13 21:44:52,393 - DEBUG - Requesting: http://10.0.0.32:8082/project/2a6c1b10-14a1-44b6-b73c-98f01dac1636
2024-09-13 21:44:52,475 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/35e63a15-13ff-4adb-a7a2-1582ff5b810f
2024-09-13 21:44:52,488 - DEBUG - ==>Verifying data for policy with id: a763dfbe-b578-430e-8f70-72beb0e50248, fqn: ['default-domain', 'ctest-TestBasicPolicy-98253417', 'ctest-policy-allow-all-16121220']
2024-09-13 21:44:52,488 - INFO - VN ctest-vn-91544888 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 21:44:52,488 - DEBUG - Verifying the vn in opserver
2024-09-13 21:44:52,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888 virtual network link through opserver 10.0.0.32
2024-09-13 21:44:52,489 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-13 21:44:52,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888?flat'}
2024-09-13 21:44:52,500 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98253417:ctest-vn-91544888 is found in opserver
2024-09-13 21:44:52,510 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 21:44:52,516 - DEBUG - VRF ids for VN ctest-vn-91544888: {}
2024-09-13 21:44:52,566 - DEBUG - Services list from nova: [