2025-01-12 22:11:05,240 - INFO - Domain Default found not creating
2025-01-12 22:11:05,383 - INFO - Project ctest-TestBasicPolicy-64161650 not found, creating it
2025-01-12 22:11:05,835 - INFO - Created Project:ctest-TestBasicPolicy-64161650, ID : 916786a7-03d9-4060-b897-403fddfb86ad
2025-01-12 22:11:07,282 - INFO - ================================================================================
2025-01-12 22:11:07,282 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-12 22:11:07,282 - 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-12 22:11:07,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.13': '0'}} with
2025-01-12 22:11:07,548 - INFO - Initial checks done. Running the testcase now
2025-01-12 22:11:07,548 - INFO -
2025-01-12 22:11:08,094 - DEBUG - Response for create_network : {'network': {'id': 'b83916bb-b9b6-41fd-9e25-b026513d3387', 'name': 'ctest-vn-45378183', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-45378183'], 'port_security_enabled': True, 'description': ''}}
2025-01-12 22:11:08,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccd3a85b-9c6a-45d4-ba96-658389655df6', 'name': '', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'network_id': 'b83916bb-b9b6-41fd-9e25-b026513d3387', 'ip_version': 4, 'cidr': '168.225.64.128/26', 'allocation_pools': [{'start': '168.225.64.130', 'end': '168.225.64.190'}], 'gateway_ip': '168.225.64.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.225.64.130', 'tags': [], 'project_id': '916786a703d94060b897403fddfb86ad'}}
2025-01-12 22:11:08,271 - INFO - Created VN ctest-vn-45378183
2025-01-12 22:11:08,322 - DEBUG - VN ctest-vn-45378183 UUID is b83916bb-b9b6-41fd-9e25-b026513d3387
2025-01-12 22:11:08,628 - DEBUG - Response for create_network : {'network': {'id': '3c750cc3-f076-4b63-95b1-e2a0ca091588', 'name': 'ctest-vn-23068185', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-23068185'], 'port_security_enabled': True, 'description': ''}}
2025-01-12 22:11:08,790 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4a1ad6b-56f1-4712-a109-6874df5163ed', 'name': '', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'network_id': '3c750cc3-f076-4b63-95b1-e2a0ca091588', 'ip_version': 4, 'cidr': '9.30.156.192/26', 'allocation_pools': [{'start': '9.30.156.194', 'end': '9.30.156.254'}], 'gateway_ip': '9.30.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.30.156.194', 'tags': [], 'project_id': '916786a703d94060b897403fddfb86ad'}}
2025-01-12 22:11:08,811 - INFO - Created VN ctest-vn-23068185
2025-01-12 22:11:08,862 - DEBUG - VN ctest-vn-23068185 UUID is 3c750cc3-f076-4b63-95b1-e2a0ca091588
2025-01-12 22:11:08,977 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183, 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-64161650:ctest-vn-23068185, 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-12 22:11:09,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b83916bb-b9b6-41fd-9e25-b026513d3387', 'name': 'ctest-vn-45378183', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccd3a85b-9c6a-45d4-ba96-658389655df6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-45378183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473']], 'subnet_ipam': [{'subnet_cidr': '168.225.64.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-12 22:11:09,515 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c750cc3-f076-4b63-95b1-e2a0ca091588', 'name': 'ctest-vn-23068185', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4a1ad6b-56f1-4712-a109-6874df5163ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-23068185'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473']], 'subnet_ipam': [{'subnet_cidr': '9.30.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-12 22:11:09,682 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-12 22:11:09,976 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-12 22:11:10,003 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59
2025-01-12 22:11:10,017 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad
2025-01-12 22:11:10,096 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387
2025-01-12 22:11:10,107 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387
2025-01-12 22:11:10,117 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee
2025-01-12 22:11:10,125 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee
2025-01-12 22:11:10,132 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/d94ace60-c2ea-40e7-88aa-e6194327d058
2025-01-12 22:11:10,140 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-12 22:11:10,140 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387
2025-01-12 22:11:10,150 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee
2025-01-12 22:11:10,168 - INFO - Verified VN network id 8 for VN b83916bb-b9b6-41fd-9e25-b026513d3387
2025-01-12 22:11:10,168 - INFO - Verifications in API Server for VN ctest-vn-45378183 passed
2025-01-12 22:11:10,168 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387
2025-01-12 22:11:10,181 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee
2025-01-12 22:11:10,188 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee
2025-01-12 22:11:10,195 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/d94ace60-c2ea-40e7-88aa-e6194327d058
2025-01-12 22:11:10,210 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64161650', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13274666372181672445', 'uuid-lslong': '11395708110749119367'}, 'enable': 'true', 'created': '2025-01-12T22:11:08', 'last-modified': '2025-01-12T22:11:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964454'}
2025-01-12 22:11:10,219 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-12 22:11:10,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45378183 passed
2025-01-12 22:11:10,219 - DEBUG - ====Verifying policy data for ctest-vn-45378183 in API_Server ======
2025-01-12 22:11:10,219 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-12 22:11:10,224 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59
2025-01-12 22:11:10,235 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad
2025-01-12 22:11:10,313 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387
2025-01-12 22:11:10,324 - DEBUG - ==>Verifying data for policy with id: a1bac66b-ded8-4779-917c-b1459eb4d180, fqn: ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473']
2025-01-12 22:11:10,324 - INFO - VN ctest-vn-45378183 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-12 22:11:10,324 - DEBUG - Verifying the vn in opserver
2025-01-12 22:11:10,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183 virtual network link through opserver 10.0.0.29
2025-01-12 22:11:10,325 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-12 22:11:10,617 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-12 22:11:10,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183?flat'}
2025-01-12 22:11:10,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183 is found in opserver
2025-01-12 22:11:10,679 - DEBUG - Do not have enough data to verify VN in agent
2025-01-12 22:11:10,685 - DEBUG - VRF ids for VN ctest-vn-45378183: {}
2025-01-12 22:11:10,686 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-12 22:11:10,691 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59
2025-01-12 22:11:10,701 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad
2025-01-12 22:11:10,771 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588
2025-01-12 22:11:10,784 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588
2025-01-12 22:11:10,793 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6
2025-01-12 22:11:10,801 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6
2025-01-12 22:11:10,809 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/31a794cc-f94f-4ef8-a8a1-6fc64778b558
2025-01-12 22:11:10,816 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-12 22:11:10,816 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588
2025-01-12 22:11:10,826 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6
2025-01-12 22:11:10,840 - INFO - Verified VN network id 9 for VN 3c750cc3-f076-4b63-95b1-e2a0ca091588
2025-01-12 22:11:10,840 - INFO - Verifications in API Server for VN ctest-vn-23068185 passed
2025-01-12 22:11:10,840 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588
2025-01-12 22:11:10,851 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6
2025-01-12 22:11:10,859 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6
2025-01-12 22:11:10,866 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/31a794cc-f94f-4ef8-a8a1-6fc64778b558
2025-01-12 22:11:10,880 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64161650', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4356402250243263331', 'uuid-lslong': '10786651762741286280'}, 'enable': 'true', 'created': '2025-01-12T22:11:08', 'last-modified': '2025-01-12T22:11:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399251'}
2025-01-12 22:11:10,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-12 22:11:10,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23068185 passed
2025-01-12 22:11:10,887 - DEBUG - ====Verifying policy data for ctest-vn-23068185 in API_Server ======
2025-01-12 22:11:10,887 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-01-12 22:11:10,893 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59
2025-01-12 22:11:10,904 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad
2025-01-12 22:11:10,974 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588
2025-01-12 22:11:10,983 - DEBUG - ==>Verifying data for policy with id: a1bac66b-ded8-4779-917c-b1459eb4d180, fqn: ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473']
2025-01-12 22:11:10,983 - INFO - VN ctest-vn-23068185 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-12 22:11:10,983 - DEBUG - Verifying the vn in opserver
2025-01-12 22:11:10,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185 virtual network link through opserver 10.0.0.29
2025-01-12 22:11:10,983 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-01-12 22:11:10,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185?flat'}
2025-01-12 22:11:10,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185 is found in opserver
2025-01-12 22:11:11,006 - DEBUG - Do not have enough data to verify VN in agent
2025-01-12 22:11:11,013 - DEBUG - VRF ids for VN ctest-vn-23068185: {}
2025-01-12 22:11:11,075 - DEBUG - Services list from nova: [