2025-06-30 11:44:43,320 - INFO - Domain Default found not creating
2025-06-30 11:44:43,465 - INFO - Project ctest-TestBasicPolicy-58239983 not found, creating it
2025-06-30 11:44:43,913 - INFO - Created Project:ctest-TestBasicPolicy-58239983, ID : 329d490f-12e2-49ae-8024-12c0c732ba06
2025-06-30 11:44:45,327 - INFO - ================================================================================
2025-06-30 11:44:45,327 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 11:44:45,327 - 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-06-30 11:44:45,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with
2025-06-30 11:44:45,582 - INFO - Initial checks done. Running the testcase now
2025-06-30 11:44:45,582 - INFO -
2025-06-30 11:44:46,107 - DEBUG - Response for create_network : {'network': {'id': 'ff457328-6179-4a12-a186-adcf1d24bd26', 'name': 'ctest-vn-38417985', 'tenant_id': '329d490f12e249ae802412c0c732ba06', 'project_id': '329d490f12e249ae802412c0c732ba06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-vn-38417985'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:46,281 - DEBUG - Response for create_subnet : {'subnet': {'id': '05a11686-5c44-4266-9229-afe77d66318e', 'name': '', 'tenant_id': '329d490f12e249ae802412c0c732ba06', 'network_id': 'ff457328-6179-4a12-a186-adcf1d24bd26', 'ip_version': 4, 'cidr': '66.98.12.64/26', 'allocation_pools': [{'start': '66.98.12.66', 'end': '66.98.12.126'}], 'gateway_ip': '66.98.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.98.12.66', 'tags': [], 'project_id': '329d490f12e249ae802412c0c732ba06'}}
2025-06-30 11:44:46,299 - INFO - Created VN ctest-vn-38417985
2025-06-30 11:44:46,352 - DEBUG - VN ctest-vn-38417985 UUID is ff457328-6179-4a12-a186-adcf1d24bd26
2025-06-30 11:44:46,649 - DEBUG - Response for create_network : {'network': {'id': '0ddb38a9-8e2e-4c23-9262-a92c78ee79c1', 'name': 'ctest-vn-34701009', 'tenant_id': '329d490f12e249ae802412c0c732ba06', 'project_id': '329d490f12e249ae802412c0c732ba06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-vn-34701009'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:46,838 - DEBUG - Response for create_subnet : {'subnet': {'id': '857b1ca8-3f58-424f-96a7-717dcff12350', 'name': '', 'tenant_id': '329d490f12e249ae802412c0c732ba06', 'network_id': '0ddb38a9-8e2e-4c23-9262-a92c78ee79c1', 'ip_version': 4, 'cidr': '14.177.80.64/26', 'allocation_pools': [{'start': '14.177.80.66', 'end': '14.177.80.126'}], 'gateway_ip': '14.177.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.177.80.66', 'tags': [], 'project_id': '329d490f12e249ae802412c0c732ba06'}}
2025-06-30 11:44:46,857 - INFO - Created VN ctest-vn-34701009
2025-06-30 11:44:46,915 - DEBUG - VN ctest-vn-34701009 UUID is 0ddb38a9-8e2e-4c23-9262-a92c78ee79c1
2025-06-30 11:44:47,035 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-38417985, 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-58239983:ctest-vn-34701009, 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-06-30 11:44:47,367 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff457328-6179-4a12-a186-adcf1d24bd26', 'name': 'ctest-vn-38417985', 'tenant_id': '329d490f12e249ae802412c0c732ba06', 'project_id': '329d490f12e249ae802412c0c732ba06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05a11686-5c44-4266-9229-afe77d66318e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-vn-38417985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-policy-allow-all-57431914']], 'subnet_ipam': [{'subnet_cidr': '66.98.12.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:47,585 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ddb38a9-8e2e-4c23-9262-a92c78ee79c1', 'name': 'ctest-vn-34701009', 'tenant_id': '329d490f12e249ae802412c0c732ba06', 'project_id': '329d490f12e249ae802412c0c732ba06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['857b1ca8-3f58-424f-96a7-717dcff12350'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-vn-34701009'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-policy-allow-all-57431914']], 'subnet_ipam': [{'subnet_cidr': '14.177.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 11:44:47,743 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 11:44:48,041 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 11:44:48,068 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ce6183f5-1fef-4cea-8664-bb95e386f2d8
2025-06-30 11:44:48,082 - DEBUG - Requesting: http://10.0.0.49:8082/project/329d490f-12e2-49ae-8024-12c0c732ba06
2025-06-30 11:44:48,155 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ff457328-6179-4a12-a186-adcf1d24bd26
2025-06-30 11:44:48,166 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ff457328-6179-4a12-a186-adcf1d24bd26
2025-06-30 11:44:48,175 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9d955102-171f-47c6-bf83-3e896f39b8ca
2025-06-30 11:44:48,182 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9d955102-171f-47c6-bf83-3e896f39b8ca
2025-06-30 11:44:48,189 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/043b95e8-7692-4609-9cb1-975f232da2d0
2025-06-30 11:44:48,195 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 11:44:48,195 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ff457328-6179-4a12-a186-adcf1d24bd26
2025-06-30 11:44:48,203 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9d955102-171f-47c6-bf83-3e896f39b8ca
2025-06-30 11:44:48,217 - INFO - Verified VN network id 8 for VN ff457328-6179-4a12-a186-adcf1d24bd26
2025-06-30 11:44:48,217 - INFO - Verifications in API Server for VN ctest-vn-38417985 passed
2025-06-30 11:44:48,217 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ff457328-6179-4a12-a186-adcf1d24bd26
2025-06-30 11:44:48,226 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9d955102-171f-47c6-bf83-3e896f39b8ca
2025-06-30 11:44:48,233 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9d955102-171f-47c6-bf83-3e896f39b8ca
2025-06-30 11:44:48,240 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/043b95e8-7692-4609-9cb1-975f232da2d0
2025-06-30 11:44:48,252 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-38417985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58239983', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18394234870335883794', 'uuid-lslong': '11639181392044408102'}, 'enable': 'true', 'created': '2025-06-30T11:44:46', 'last-modified': '2025-06-30T11:44:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906563'}
2025-06-30 11:44:48,258 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 11:44:48,258 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38417985 passed
2025-06-30 11:44:48,258 - DEBUG - ====Verifying policy data for ctest-vn-38417985 in API_Server ======
2025-06-30 11:44:48,258 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 11:44:48,264 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ce6183f5-1fef-4cea-8664-bb95e386f2d8
2025-06-30 11:44:48,275 - DEBUG - Requesting: http://10.0.0.49:8082/project/329d490f-12e2-49ae-8024-12c0c732ba06
2025-06-30 11:44:48,346 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ff457328-6179-4a12-a186-adcf1d24bd26
2025-06-30 11:44:48,355 - DEBUG - ==>Verifying data for policy with id: f470cae5-4135-4fa6-83df-ba03ca8f3111, fqn: ['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-policy-allow-all-57431914']
2025-06-30 11:44:48,355 - INFO - VN ctest-vn-38417985 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 11:44:48,355 - DEBUG - Verifying the vn in opserver
2025-06-30 11:44:48,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-38417985 virtual network link through opserver 10.0.0.49
2025-06-30 11:44:48,356 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-30 11:44:48,645 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-30 11:44:48,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-38417985', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-38417985?flat'}
2025-06-30 11:44:48,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-38417985 is found in opserver
2025-06-30 11:44:48,711 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 11:44:48,717 - DEBUG - VRF ids for VN ctest-vn-38417985: {}
2025-06-30 11:44:48,717 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 11:44:48,722 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ce6183f5-1fef-4cea-8664-bb95e386f2d8
2025-06-30 11:44:48,734 - DEBUG - Requesting: http://10.0.0.49:8082/project/329d490f-12e2-49ae-8024-12c0c732ba06
2025-06-30 11:44:48,810 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0ddb38a9-8e2e-4c23-9262-a92c78ee79c1
2025-06-30 11:44:48,822 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0ddb38a9-8e2e-4c23-9262-a92c78ee79c1
2025-06-30 11:44:48,831 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bdcd1145-6f88-4c54-8872-50e4976b2611
2025-06-30 11:44:48,839 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bdcd1145-6f88-4c54-8872-50e4976b2611
2025-06-30 11:44:48,846 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/3f09fd6c-be44-440f-ba01-04a307726ded
2025-06-30 11:44:48,853 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 11:44:48,853 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0ddb38a9-8e2e-4c23-9262-a92c78ee79c1
2025-06-30 11:44:48,863 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bdcd1145-6f88-4c54-8872-50e4976b2611
2025-06-30 11:44:48,878 - INFO - Verified VN network id 9 for VN 0ddb38a9-8e2e-4c23-9262-a92c78ee79c1
2025-06-30 11:44:48,878 - INFO - Verifications in API Server for VN ctest-vn-34701009 passed
2025-06-30 11:44:48,878 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0ddb38a9-8e2e-4c23-9262-a92c78ee79c1
2025-06-30 11:44:48,888 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bdcd1145-6f88-4c54-8872-50e4976b2611
2025-06-30 11:44:48,896 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/bdcd1145-6f88-4c54-8872-50e4976b2611
2025-06-30 11:44:48,903 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/3f09fd6c-be44-440f-ba01-04a307726ded
2025-06-30 11:44:48,916 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-34701009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58239983', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '998454043278724131', 'uuid-lslong': '10548179285727672769'}, 'enable': 'true', 'created': '2025-06-30T11:44:46', 'last-modified': '2025-06-30T11:44:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349021'}
2025-06-30 11:44:48,923 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 11:44:48,923 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34701009 passed
2025-06-30 11:44:48,923 - DEBUG - ====Verifying policy data for ctest-vn-34701009 in API_Server ======
2025-06-30 11:44:48,923 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-06-30 11:44:48,930 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ce6183f5-1fef-4cea-8664-bb95e386f2d8
2025-06-30 11:44:48,943 - DEBUG - Requesting: http://10.0.0.49:8082/project/329d490f-12e2-49ae-8024-12c0c732ba06
2025-06-30 11:44:49,016 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0ddb38a9-8e2e-4c23-9262-a92c78ee79c1
2025-06-30 11:44:49,027 - DEBUG - ==>Verifying data for policy with id: f470cae5-4135-4fa6-83df-ba03ca8f3111, fqn: ['default-domain', 'ctest-TestBasicPolicy-58239983', 'ctest-policy-allow-all-57431914']
2025-06-30 11:44:49,027 - INFO - VN ctest-vn-34701009 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 11:44:49,027 - DEBUG - Verifying the vn in opserver
2025-06-30 11:44:49,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-34701009 virtual network link through opserver 10.0.0.49
2025-06-30 11:44:49,027 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-06-30 11:44:49,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-34701009', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-34701009?flat'}
2025-06-30 11:44:49,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58239983:ctest-vn-34701009 is found in opserver
2025-06-30 11:44:49,050 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 11:44:49,057 - DEBUG - VRF ids for VN ctest-vn-34701009: {}
2025-06-30 11:44:49,112 - DEBUG - Services list from nova: [