2025-04-08 21:16:11,287 - INFO - Domain Default found not creating
2025-04-08 21:16:11,666 - INFO - Project ctest-TestBasicPolicy-16987761 not found, creating it
2025-04-08 21:16:12,201 - INFO - Created Project:ctest-TestBasicPolicy-16987761, ID : 17b9201c-f703-48fe-af0a-0352edc6d3de
2025-04-08 21:16:14,728 - INFO - ================================================================================
2025-04-08 21:16:14,728 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 21:16:14,729 - 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-04-08 21:16:15,053 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.35': '0'}} with
2025-04-08 21:16:15,053 - INFO - Initial checks done. Running the testcase now
2025-04-08 21:16:15,053 - INFO -
2025-04-08 21:16:15,855 - DEBUG - Response for create_network : {'network': {'id': 'ebe1dace-c6ef-4337-b82a-69f5941936bd', 'name': 'ctest-vn-38778622', 'tenant_id': '17b9201cf70348feaf0a0352edc6d3de', 'project_id': '17b9201cf70348feaf0a0352edc6d3de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-vn-38778622'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 21:16:16,148 - DEBUG - Response for create_subnet : {'subnet': {'id': '433ac375-f0e0-4256-9f4d-6b78d9798a05', 'name': '', 'tenant_id': '17b9201cf70348feaf0a0352edc6d3de', 'network_id': 'ebe1dace-c6ef-4337-b82a-69f5941936bd', 'ip_version': 4, 'cidr': '16.112.28.192/26', 'allocation_pools': [{'start': '16.112.28.194', 'end': '16.112.28.254'}], 'gateway_ip': '16.112.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.112.28.194', 'tags': [], 'project_id': '17b9201cf70348feaf0a0352edc6d3de'}}
2025-04-08 21:16:16,179 - INFO - Created VN ctest-vn-38778622
2025-04-08 21:16:16,245 - DEBUG - VN ctest-vn-38778622 UUID is ebe1dace-c6ef-4337-b82a-69f5941936bd
2025-04-08 21:16:16,773 - DEBUG - Response for create_network : {'network': {'id': 'b5ca8387-7aad-4371-afc9-1bd1d7f04c20', 'name': 'ctest-vn-65267158', 'tenant_id': '17b9201cf70348feaf0a0352edc6d3de', 'project_id': '17b9201cf70348feaf0a0352edc6d3de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-vn-65267158'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 21:16:17,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d4807f4-a7f4-417b-91c5-c0174e8b5457', 'name': '', 'tenant_id': '17b9201cf70348feaf0a0352edc6d3de', 'network_id': 'b5ca8387-7aad-4371-afc9-1bd1d7f04c20', 'ip_version': 4, 'cidr': '167.22.78.64/26', 'allocation_pools': [{'start': '167.22.78.66', 'end': '167.22.78.126'}], 'gateway_ip': '167.22.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.22.78.66', 'tags': [], 'project_id': '17b9201cf70348feaf0a0352edc6d3de'}}
2025-04-08 21:16:17,053 - INFO - Created VN ctest-vn-65267158
2025-04-08 21:16:17,116 - DEBUG - VN ctest-vn-65267158 UUID is b5ca8387-7aad-4371-afc9-1bd1d7f04c20
2025-04-08 21:16:17,313 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-38778622, 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-16987761:ctest-vn-65267158, 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-04-08 21:16:17,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ebe1dace-c6ef-4337-b82a-69f5941936bd', 'name': 'ctest-vn-38778622', 'tenant_id': '17b9201cf70348feaf0a0352edc6d3de', 'project_id': '17b9201cf70348feaf0a0352edc6d3de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['433ac375-f0e0-4256-9f4d-6b78d9798a05'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-vn-38778622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-policy-allow-all-75384711']], 'subnet_ipam': [{'subnet_cidr': '16.112.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 21:16:18,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5ca8387-7aad-4371-afc9-1bd1d7f04c20', 'name': 'ctest-vn-65267158', 'tenant_id': '17b9201cf70348feaf0a0352edc6d3de', 'project_id': '17b9201cf70348feaf0a0352edc6d3de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d4807f4-a7f4-417b-91c5-c0174e8b5457'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-vn-65267158'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-policy-allow-all-75384711']], 'subnet_ipam': [{'subnet_cidr': '167.22.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 21:16:18,348 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 21:16:18,705 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 21:16:18,751 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b51328c9-bc3b-4b4a-a1b1-1a060998dfcf
2025-04-08 21:16:18,784 - DEBUG - Requesting: http://10.0.0.31:8082/project/17b9201c-f703-48fe-af0a-0352edc6d3de
2025-04-08 21:16:18,922 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ebe1dace-c6ef-4337-b82a-69f5941936bd
2025-04-08 21:16:18,951 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ebe1dace-c6ef-4337-b82a-69f5941936bd
2025-04-08 21:16:18,974 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1eeac99-0fac-4331-adfe-7cea8cb5638c
2025-04-08 21:16:18,988 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1eeac99-0fac-4331-adfe-7cea8cb5638c
2025-04-08 21:16:19,002 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/9af3a172-f30b-40ef-a70c-d5fa0f1f3299
2025-04-08 21:16:19,036 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 21:16:19,036 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ebe1dace-c6ef-4337-b82a-69f5941936bd
2025-04-08 21:16:19,054 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1eeac99-0fac-4331-adfe-7cea8cb5638c
2025-04-08 21:16:19,088 - INFO - Verified VN network id 8 for VN ebe1dace-c6ef-4337-b82a-69f5941936bd
2025-04-08 21:16:19,089 - INFO - Verifications in API Server for VN ctest-vn-38778622 passed
2025-04-08 21:16:19,089 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ebe1dace-c6ef-4337-b82a-69f5941936bd
2025-04-08 21:16:19,112 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1eeac99-0fac-4331-adfe-7cea8cb5638c
2025-04-08 21:16:19,127 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1eeac99-0fac-4331-adfe-7cea8cb5638c
2025-04-08 21:16:19,143 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/9af3a172-f30b-40ef-a70c-d5fa0f1f3299
2025-04-08 21:16:19,174 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-38778622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16987761', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16997107050308649783', 'uuid-lslong': '13270535755473172157'}, 'enable': 'true', 'created': '2025-04-08T21:16:15', 'last-modified': '2025-04-08T21:16:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.392201'}
2025-04-08 21:16:19,196 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 21:16:19,197 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38778622 passed
2025-04-08 21:16:19,197 - DEBUG - ====Verifying policy data for ctest-vn-38778622 in API_Server ======
2025-04-08 21:16:19,197 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 21:16:19,215 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b51328c9-bc3b-4b4a-a1b1-1a060998dfcf
2025-04-08 21:16:19,253 - DEBUG - Requesting: http://10.0.0.31:8082/project/17b9201c-f703-48fe-af0a-0352edc6d3de
2025-04-08 21:16:19,393 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/ebe1dace-c6ef-4337-b82a-69f5941936bd
2025-04-08 21:16:19,424 - DEBUG - ==>Verifying data for policy with id: 97dc9d66-0bdd-49d7-9a69-d081800c77d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-policy-allow-all-75384711']
2025-04-08 21:16:19,424 - INFO - VN ctest-vn-38778622 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 21:16:19,424 - DEBUG - Verifying the vn in opserver
2025-04-08 21:16:19,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-38778622 virtual network link through opserver 10.0.0.31
2025-04-08 21:16:19,425 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-04-08 21:16:19,768 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-04-08 21:16:19,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-38778622', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-38778622?flat'}
2025-04-08 21:16:19,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-38778622 is found in opserver
2025-04-08 21:16:19,854 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 21:16:19,865 - DEBUG - VRF ids for VN ctest-vn-38778622: {}
2025-04-08 21:16:19,865 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 21:16:19,877 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b51328c9-bc3b-4b4a-a1b1-1a060998dfcf
2025-04-08 21:16:19,907 - DEBUG - Requesting: http://10.0.0.31:8082/project/17b9201c-f703-48fe-af0a-0352edc6d3de
2025-04-08 21:16:20,029 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b5ca8387-7aad-4371-afc9-1bd1d7f04c20
2025-04-08 21:16:20,066 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b5ca8387-7aad-4371-afc9-1bd1d7f04c20
2025-04-08 21:16:20,096 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b1e16561-04f2-44bc-885a-8b69e19a2870
2025-04-08 21:16:20,120 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b1e16561-04f2-44bc-885a-8b69e19a2870
2025-04-08 21:16:20,142 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f626534d-716b-4627-a455-13d985519580
2025-04-08 21:16:20,164 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 21:16:20,164 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b5ca8387-7aad-4371-afc9-1bd1d7f04c20
2025-04-08 21:16:20,187 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b1e16561-04f2-44bc-885a-8b69e19a2870
2025-04-08 21:16:20,229 - INFO - Verified VN network id 9 for VN b5ca8387-7aad-4371-afc9-1bd1d7f04c20
2025-04-08 21:16:20,229 - INFO - Verifications in API Server for VN ctest-vn-65267158 passed
2025-04-08 21:16:20,230 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b5ca8387-7aad-4371-afc9-1bd1d7f04c20
2025-04-08 21:16:20,262 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b1e16561-04f2-44bc-885a-8b69e19a2870
2025-04-08 21:16:20,289 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b1e16561-04f2-44bc-885a-8b69e19a2870
2025-04-08 21:16:20,309 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f626534d-716b-4627-a455-13d985519580
2025-04-08 21:16:20,340 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-65267158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16987761', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13099427084062507889', 'uuid-lslong': '12666686015041195040'}, 'enable': 'true', 'created': '2025-04-08T21:16:16', 'last-modified': '2025-04-08T21:16:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.200736'}
2025-04-08 21:16:20,359 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 21:16:20,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65267158 passed
2025-04-08 21:16:20,360 - DEBUG - ====Verifying policy data for ctest-vn-65267158 in API_Server ======
2025-04-08 21:16:20,360 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-04-08 21:16:20,380 - DEBUG - Requesting: http://10.0.0.31:8082/domain/b51328c9-bc3b-4b4a-a1b1-1a060998dfcf
2025-04-08 21:16:20,420 - DEBUG - Requesting: http://10.0.0.31:8082/project/17b9201c-f703-48fe-af0a-0352edc6d3de
2025-04-08 21:16:20,537 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/b5ca8387-7aad-4371-afc9-1bd1d7f04c20
2025-04-08 21:16:20,556 - DEBUG - ==>Verifying data for policy with id: 97dc9d66-0bdd-49d7-9a69-d081800c77d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-16987761', 'ctest-policy-allow-all-75384711']
2025-04-08 21:16:20,556 - INFO - VN ctest-vn-65267158 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 21:16:20,556 - DEBUG - Verifying the vn in opserver
2025-04-08 21:16:20,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-65267158 virtual network link through opserver 10.0.0.31
2025-04-08 21:16:20,556 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-04-08 21:16:20,572 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-65267158', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-65267158?flat'}
2025-04-08 21:16:20,572 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16987761:ctest-vn-65267158 is found in opserver
2025-04-08 21:16:20,603 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 21:16:20,622 - DEBUG - VRF ids for VN ctest-vn-65267158: {}
2025-04-08 21:16:20,754 - DEBUG - Services list from nova: [