2025-02-17 02:34:15,778 - INFO - Domain Default found not creating
2025-02-17 02:34:15,969 - INFO - Project ctest-TestBasicPolicy-82105322 not found, creating it
2025-02-17 02:34:16,466 - INFO - Created Project:ctest-TestBasicPolicy-82105322, ID : 0b253380-4c7c-4607-abaa-9eb4d795a0ef
2025-02-17 02:34:18,196 - INFO - ================================================================================
2025-02-17 02:34:18,196 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-17 02:34:18,196 - 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
2025-02-17 02:34:18,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.0.0.30': '0'}} with
2025-02-17 02:34:18,459 - INFO - Initial checks done. Running the testcase now
2025-02-17 02:34:18,459 - INFO -
2025-02-17 02:34:19,097 - DEBUG - Response for create_network : {'network': {'id': '6fbaaa46-354e-4066-ab72-bf70217da500', 'name': 'ctest-vn-70707484', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-70707484'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:34:19,271 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a3b103e-e2f5-4737-91ef-6dd4e20d85ec', 'name': '', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'network_id': '6fbaaa46-354e-4066-ab72-bf70217da500', 'ip_version': 4, 'cidr': '173.251.103.192/26', 'allocation_pools': [{'start': '173.251.103.194', 'end': '173.251.103.254'}], 'gateway_ip': '173.251.103.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.251.103.194', 'tags': [], 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef'}}
2025-02-17 02:34:19,297 - INFO - Created VN ctest-vn-70707484
2025-02-17 02:34:19,356 - DEBUG - VN ctest-vn-70707484 UUID is 6fbaaa46-354e-4066-ab72-bf70217da500
2025-02-17 02:34:19,707 - DEBUG - Response for create_network : {'network': {'id': '40e3c271-231e-433f-9efa-3a196859539e', 'name': 'ctest-vn-12587957', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-12587957'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:34:19,907 - DEBUG - Response for create_subnet : {'subnet': {'id': '0acf075f-5010-4c3e-8bfa-b57b74e9a5aa', 'name': '', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'network_id': '40e3c271-231e-433f-9efa-3a196859539e', 'ip_version': 4, 'cidr': '9.238.241.192/26', 'allocation_pools': [{'start': '9.238.241.194', 'end': '9.238.241.254'}], 'gateway_ip': '9.238.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.238.241.194', 'tags': [], 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef'}}
2025-02-17 02:34:19,929 - INFO - Created VN ctest-vn-12587957
2025-02-17 02:34:19,984 - DEBUG - VN ctest-vn-12587957 UUID is 40e3c271-231e-433f-9efa-3a196859539e
2025-02-17 02:34:20,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484, 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-82105322:ctest-vn-12587957, 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]
2025-02-17 02:34:20,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fbaaa46-354e-4066-ab72-bf70217da500', 'name': 'ctest-vn-70707484', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a3b103e-e2f5-4737-91ef-6dd4e20d85ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-70707484'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366']], 'subnet_ipam': [{'subnet_cidr': '173.251.103.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:34:20,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40e3c271-231e-433f-9efa-3a196859539e', 'name': 'ctest-vn-12587957', 'tenant_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'project_id': '0b2533804c7c4607abaa9eb4d795a0ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0acf075f-5010-4c3e-8bfa-b57b74e9a5aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-vn-12587957'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366']], 'subnet_ipam': [{'subnet_cidr': '9.238.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:34:20,880 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-17 02:34:21,219 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-17 02:34:21,253 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e
2025-02-17 02:34:21,270 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef
2025-02-17 02:34:21,350 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500
2025-02-17 02:34:21,364 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500
2025-02-17 02:34:21,376 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245
2025-02-17 02:34:21,386 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245
2025-02-17 02:34:21,395 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/17bfde61-f1df-4843-9854-8c8d6a0c9a51
2025-02-17 02:34:21,404 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-17 02:34:21,404 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500
2025-02-17 02:34:21,417 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245
2025-02-17 02:34:21,435 - INFO - Verified VN network id 7 for VN 6fbaaa46-354e-4066-ab72-bf70217da500
2025-02-17 02:34:21,435 - INFO - Verifications in API Server for VN ctest-vn-70707484 passed
2025-02-17 02:34:21,436 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500
2025-02-17 02:34:21,447 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245
2025-02-17 02:34:21,456 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/599c761e-0dfc-48dc-bc62-40d676820245
2025-02-17 02:34:21,464 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/17bfde61-f1df-4843-9854-8c8d6a0c9a51
2025-02-17 02:34:21,479 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82105322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8050934502396936294', 'uuid-lslong': '12354147216149816576'}, 'enable': 'true', 'created': '2025-02-17T02:34:19', 'last-modified': '2025-02-17T02:34:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.064275'}
2025-02-17 02:34:21,486 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-17 02:34:21,486 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70707484 passed
2025-02-17 02:34:21,487 - DEBUG - ====Verifying policy data for ctest-vn-70707484 in API_Server ======
2025-02-17 02:34:21,487 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-17 02:34:21,493 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e
2025-02-17 02:34:21,506 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef
2025-02-17 02:34:21,589 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6fbaaa46-354e-4066-ab72-bf70217da500
2025-02-17 02:34:21,602 - DEBUG - ==>Verifying data for policy with id: 19f9a507-356a-45f3-8eb2-a24b3ba8ab96, fqn: ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366']
2025-02-17 02:34:21,602 - INFO - VN ctest-vn-70707484 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 02:34:21,602 - DEBUG - Verifying the vn in opserver
2025-02-17 02:34:21,602 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484 virtual network link through opserver 10.0.0.30
2025-02-17 02:34:21,602 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-17 02:34:21,944 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-17 02:34:22,013 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484?flat'}
2025-02-17 02:34:22,013 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-70707484 is found in opserver
2025-02-17 02:34:22,027 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 02:34:22,033 - DEBUG - VRF ids for VN ctest-vn-70707484: {}
2025-02-17 02:34:22,033 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-17 02:34:22,040 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e
2025-02-17 02:34:22,055 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef
2025-02-17 02:34:22,133 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e
2025-02-17 02:34:22,148 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e
2025-02-17 02:34:22,160 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5
2025-02-17 02:34:22,170 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5
2025-02-17 02:34:22,180 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/fae673b3-669b-4948-8788-20e01aa51b4f
2025-02-17 02:34:22,189 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 02:34:22,190 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e
2025-02-17 02:34:22,203 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5
2025-02-17 02:34:22,221 - INFO - Verified VN network id 8 for VN 40e3c271-231e-433f-9efa-3a196859539e
2025-02-17 02:34:22,221 - INFO - Verifications in API Server for VN ctest-vn-12587957 passed
2025-02-17 02:34:22,221 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e
2025-02-17 02:34:22,234 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5
2025-02-17 02:34:22,244 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/018041d6-7905-4752-ad07-487180c289c5
2025-02-17 02:34:22,252 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/fae673b3-669b-4948-8788-20e01aa51b4f
2025-02-17 02:34:22,267 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82105322', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4675794629316985663', 'uuid-lslong': '11455532482969555870'}, 'enable': 'true', 'created': '2025-02-17T02:34:19', 'last-modified': '2025-02-17T02:34:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607174'}
2025-02-17 02:34:22,274 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 02:34:22,274 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12587957 passed
2025-02-17 02:34:22,275 - DEBUG - ====Verifying policy data for ctest-vn-12587957 in API_Server ======
2025-02-17 02:34:22,275 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-02-17 02:34:22,281 - DEBUG - Requesting: http://10.0.0.30:8082/domain/ee412809-653a-4520-9e1b-53b96c651b7e
2025-02-17 02:34:22,296 - DEBUG - Requesting: http://10.0.0.30:8082/project/0b253380-4c7c-4607-abaa-9eb4d795a0ef
2025-02-17 02:34:22,384 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/40e3c271-231e-433f-9efa-3a196859539e
2025-02-17 02:34:22,397 - DEBUG - ==>Verifying data for policy with id: 19f9a507-356a-45f3-8eb2-a24b3ba8ab96, fqn: ['default-domain', 'ctest-TestBasicPolicy-82105322', 'ctest-policy-allow-all-58066366']
2025-02-17 02:34:22,397 - INFO - VN ctest-vn-12587957 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 02:34:22,397 - DEBUG - Verifying the vn in opserver
2025-02-17 02:34:22,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957 virtual network link through opserver 10.0.0.30
2025-02-17 02:34:22,397 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-02-17 02:34:22,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957?flat'}
2025-02-17 02:34:22,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82105322:ctest-vn-12587957 is found in opserver
2025-02-17 02:34:22,423 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 02:34:22,429 - DEBUG - VRF ids for VN ctest-vn-12587957: {}
2025-02-17 02:34:22,495 - DEBUG - Services list from nova: [