2025-01-13 18:45:26,307 - INFO - Domain Default found not creating
2025-01-13 18:45:26,463 - INFO - Project ctest-TestBasicPolicy-33105140 not found, creating it
2025-01-13 18:45:26,923 - INFO - Created Project:ctest-TestBasicPolicy-33105140, ID : 4f916c5c-af05-4489-81a5-fbc54808d0de
2025-01-13 18:45:28,371 - INFO - ================================================================================
2025-01-13 18:45:28,372 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 18:45:28,372 - 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-01-13 18:45:28,629 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.17': '0'}} with
2025-01-13 18:45:28,629 - INFO - Initial checks done. Running the testcase now
2025-01-13 18:45:28,629 - INFO -
2025-01-13 18:45:29,163 - DEBUG - Response for create_network : {'network': {'id': '7938ed54-f903-4c80-a9f9-275f896d647b', 'name': 'ctest-vn-90898737', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-90898737'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:45:29,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '44e9fdd0-b36f-46f8-ba35-aa8253180038', 'name': '', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'network_id': '7938ed54-f903-4c80-a9f9-275f896d647b', 'ip_version': 4, 'cidr': '85.79.39.128/26', 'allocation_pools': [{'start': '85.79.39.130', 'end': '85.79.39.190'}], 'gateway_ip': '85.79.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.79.39.130', 'tags': [], 'project_id': '4f916c5caf05448981a5fbc54808d0de'}}
2025-01-13 18:45:29,377 - INFO - Created VN ctest-vn-90898737
2025-01-13 18:45:29,430 - DEBUG - VN ctest-vn-90898737 UUID is 7938ed54-f903-4c80-a9f9-275f896d647b
2025-01-13 18:45:29,721 - DEBUG - Response for create_network : {'network': {'id': 'b3ade5cf-0a72-4ba1-9501-c16d446b8308', 'name': 'ctest-vn-16343947', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-16343947'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:45:29,883 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce90164f-9c7b-4d2f-afa4-4850fbeb046a', 'name': '', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'network_id': 'b3ade5cf-0a72-4ba1-9501-c16d446b8308', 'ip_version': 4, 'cidr': '183.253.184.0/26', 'allocation_pools': [{'start': '183.253.184.2', 'end': '183.253.184.62'}], 'gateway_ip': '183.253.184.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.253.184.2', 'tags': [], 'project_id': '4f916c5caf05448981a5fbc54808d0de'}}
2025-01-13 18:45:29,903 - INFO - Created VN ctest-vn-16343947
2025-01-13 18:45:29,955 - DEBUG - VN ctest-vn-16343947 UUID is b3ade5cf-0a72-4ba1-9501-c16d446b8308
2025-01-13 18:45:30,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737, 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-33105140:ctest-vn-16343947, 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-01-13 18:45:30,406 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7938ed54-f903-4c80-a9f9-275f896d647b', 'name': 'ctest-vn-90898737', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44e9fdd0-b36f-46f8-ba35-aa8253180038'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-90898737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628']], 'subnet_ipam': [{'subnet_cidr': '85.79.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:45:30,644 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3ade5cf-0a72-4ba1-9501-c16d446b8308', 'name': 'ctest-vn-16343947', 'tenant_id': '4f916c5caf05448981a5fbc54808d0de', 'project_id': '4f916c5caf05448981a5fbc54808d0de', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce90164f-9c7b-4d2f-afa4-4850fbeb046a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-vn-16343947'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628']], 'subnet_ipam': [{'subnet_cidr': '183.253.184.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 18:45:30,794 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-13 18:45:31,102 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-13 18:45:31,130 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060
2025-01-13 18:45:31,144 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de
2025-01-13 18:45:31,220 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b
2025-01-13 18:45:31,233 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b
2025-01-13 18:45:31,245 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf
2025-01-13 18:45:31,253 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf
2025-01-13 18:45:31,261 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/fde8741f-1233-459f-a083-73683703be7e
2025-01-13 18:45:31,268 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 18:45:31,268 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b
2025-01-13 18:45:31,278 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf
2025-01-13 18:45:31,295 - INFO - Verified VN network id 8 for VN 7938ed54-f903-4c80-a9f9-275f896d647b
2025-01-13 18:45:31,296 - INFO - Verifications in API Server for VN ctest-vn-90898737 passed
2025-01-13 18:45:31,296 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b
2025-01-13 18:45:31,307 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf
2025-01-13 18:45:31,315 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/08d8800e-64cb-4565-aa66-ed88fcf302cf
2025-01-13 18:45:31,323 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/fde8741f-1233-459f-a083-73683703be7e
2025-01-13 18:45:31,336 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33105140', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8734992426495855744', 'uuid-lslong': '12247863952891798651'}, 'enable': 'true', 'created': '2025-01-13T18:45:29', 'last-modified': '2025-01-13T18:45:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949774'}
2025-01-13 18:45:31,343 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 18:45:31,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90898737 passed
2025-01-13 18:45:31,343 - DEBUG - ====Verifying policy data for ctest-vn-90898737 in API_Server ======
2025-01-13 18:45:31,343 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-13 18:45:31,349 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060
2025-01-13 18:45:31,361 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de
2025-01-13 18:45:31,432 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/7938ed54-f903-4c80-a9f9-275f896d647b
2025-01-13 18:45:31,444 - DEBUG - ==>Verifying data for policy with id: 02cc0590-15e7-4433-b494-fce5b13304c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628']
2025-01-13 18:45:31,444 - INFO - VN ctest-vn-90898737 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 18:45:31,445 - DEBUG - Verifying the vn in opserver
2025-01-13 18:45:31,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737 virtual network link through opserver 10.0.0.24
2025-01-13 18:45:31,445 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-13 18:45:31,743 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-13 18:45:31,799 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737?flat'}
2025-01-13 18:45:31,799 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-90898737 is found in opserver
2025-01-13 18:45:31,812 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 18:45:31,820 - DEBUG - VRF ids for VN ctest-vn-90898737: {}
2025-01-13 18:45:31,820 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-13 18:45:31,827 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060
2025-01-13 18:45:31,843 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de
2025-01-13 18:45:31,920 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308
2025-01-13 18:45:31,934 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308
2025-01-13 18:45:31,947 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801
2025-01-13 18:45:31,956 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801
2025-01-13 18:45:31,965 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/83aff328-6f1f-4f4e-9e9d-0d142b5b98f8
2025-01-13 18:45:31,973 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 18:45:31,973 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308
2025-01-13 18:45:31,983 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801
2025-01-13 18:45:32,000 - INFO - Verified VN network id 9 for VN b3ade5cf-0a72-4ba1-9501-c16d446b8308
2025-01-13 18:45:32,000 - INFO - Verifications in API Server for VN ctest-vn-16343947 passed
2025-01-13 18:45:32,000 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308
2025-01-13 18:45:32,011 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801
2025-01-13 18:45:32,019 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9669100a-9c3b-4511-bf07-3c3721029801
2025-01-13 18:45:32,027 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/83aff328-6f1f-4f4e-9e9d-0d142b5b98f8
2025-01-13 18:45:32,040 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33105140', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12947257181156297633', 'uuid-lslong': '10737075661671465736'}, 'enable': 'true', 'created': '2025-01-13T18:45:29', 'last-modified': '2025-01-13T18:45:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.426466'}
2025-01-13 18:45:32,046 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 18:45:32,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16343947 passed
2025-01-13 18:45:32,047 - DEBUG - ====Verifying policy data for ctest-vn-16343947 in API_Server ======
2025-01-13 18:45:32,047 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-13 18:45:32,052 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c7ef35f6-f6e0-4ae2-a663-c514d6614060
2025-01-13 18:45:32,064 - DEBUG - Requesting: http://10.0.0.24:8082/project/4f916c5c-af05-4489-81a5-fbc54808d0de
2025-01-13 18:45:32,137 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b3ade5cf-0a72-4ba1-9501-c16d446b8308
2025-01-13 18:45:32,148 - DEBUG - ==>Verifying data for policy with id: 02cc0590-15e7-4433-b494-fce5b13304c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-33105140', 'ctest-policy-allow-all-37501628']
2025-01-13 18:45:32,148 - INFO - VN ctest-vn-16343947 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 18:45:32,148 - DEBUG - Verifying the vn in opserver
2025-01-13 18:45:32,148 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947 virtual network link through opserver 10.0.0.24
2025-01-13 18:45:32,148 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-13 18:45:32,159 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947?flat'}
2025-01-13 18:45:32,159 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33105140:ctest-vn-16343947 is found in opserver
2025-01-13 18:45:32,170 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 18:45:32,176 - DEBUG - VRF ids for VN ctest-vn-16343947: {}
2025-01-13 18:45:32,234 - DEBUG - Services list from nova: [