2025-02-11 19:36:36,342 - INFO - Domain Default found not creating
2025-02-11 19:36:36,505 - INFO - Project ctest-TestBasicPolicy-63530956 not found, creating it
2025-02-11 19:36:36,985 - INFO - Created Project:ctest-TestBasicPolicy-63530956, ID : c862b1af-8d11-44b4-9664-8918eeaeed19
2025-02-11 19:36:38,510 - INFO - ================================================================================
2025-02-11 19:36:38,510 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-11 19:36:38,510 - 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-11 19:36:38,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.31': '0'}} with
2025-02-11 19:36:38,773 - INFO - Initial checks done. Running the testcase now
2025-02-11 19:36:38,773 - INFO -
2025-02-11 19:36:39,345 - DEBUG - Response for create_network : {'network': {'id': '3cefbf15-b97e-4f13-b428-98455d16b64e', 'name': 'ctest-vn-34748016', 'tenant_id': 'c862b1af8d1144b496648918eeaeed19', 'project_id': 'c862b1af8d1144b496648918eeaeed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-vn-34748016'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 19:36:39,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b8e11ee-62d9-4c2b-9cf2-da172d11ec29', 'name': '', 'tenant_id': 'c862b1af8d1144b496648918eeaeed19', 'network_id': '3cefbf15-b97e-4f13-b428-98455d16b64e', 'ip_version': 4, 'cidr': '13.217.225.0/26', 'allocation_pools': [{'start': '13.217.225.2', 'end': '13.217.225.62'}], 'gateway_ip': '13.217.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.217.225.2', 'tags': [], 'project_id': 'c862b1af8d1144b496648918eeaeed19'}}
2025-02-11 19:36:39,601 - INFO - Created VN ctest-vn-34748016
2025-02-11 19:36:39,654 - DEBUG - VN ctest-vn-34748016 UUID is 3cefbf15-b97e-4f13-b428-98455d16b64e
2025-02-11 19:36:39,988 - DEBUG - Response for create_network : {'network': {'id': 'bee5c758-dd2b-4e16-9691-47708e2d20aa', 'name': 'ctest-vn-93229749', 'tenant_id': 'c862b1af8d1144b496648918eeaeed19', 'project_id': 'c862b1af8d1144b496648918eeaeed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-vn-93229749'], 'port_security_enabled': True, 'description': ''}}
2025-02-11 19:36:40,175 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cfc0180-2a11-43f6-a6b3-4e12c9be073a', 'name': '', 'tenant_id': 'c862b1af8d1144b496648918eeaeed19', 'network_id': 'bee5c758-dd2b-4e16-9691-47708e2d20aa', 'ip_version': 4, 'cidr': '7.221.114.128/26', 'allocation_pools': [{'start': '7.221.114.130', 'end': '7.221.114.190'}], 'gateway_ip': '7.221.114.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.221.114.130', 'tags': [], 'project_id': 'c862b1af8d1144b496648918eeaeed19'}}
2025-02-11 19:36:40,196 - INFO - Created VN ctest-vn-93229749
2025-02-11 19:36:40,251 - DEBUG - VN ctest-vn-93229749 UUID is bee5c758-dd2b-4e16-9691-47708e2d20aa
2025-02-11 19:36:40,371 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-34748016, 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-63530956:ctest-vn-93229749, 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-11 19:36:40,692 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3cefbf15-b97e-4f13-b428-98455d16b64e', 'name': 'ctest-vn-34748016', 'tenant_id': 'c862b1af8d1144b496648918eeaeed19', 'project_id': 'c862b1af8d1144b496648918eeaeed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b8e11ee-62d9-4c2b-9cf2-da172d11ec29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-vn-34748016'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-policy-allow-all-34933980']], 'subnet_ipam': [{'subnet_cidr': '13.217.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 19:36:40,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bee5c758-dd2b-4e16-9691-47708e2d20aa', 'name': 'ctest-vn-93229749', 'tenant_id': 'c862b1af8d1144b496648918eeaeed19', 'project_id': 'c862b1af8d1144b496648918eeaeed19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8cfc0180-2a11-43f6-a6b3-4e12c9be073a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-vn-93229749'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-policy-allow-all-34933980']], 'subnet_ipam': [{'subnet_cidr': '7.221.114.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-11 19:36:41,110 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 19:36:41,412 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 19:36:41,444 - DEBUG - Requesting: http://10.0.0.31:8082/domain/8d5f0e47-5b59-44b1-8577-9bbacf27fcc5
2025-02-11 19:36:41,464 - DEBUG - Requesting: http://10.0.0.31:8082/project/c862b1af-8d11-44b4-9664-8918eeaeed19
2025-02-11 19:36:41,544 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3cefbf15-b97e-4f13-b428-98455d16b64e
2025-02-11 19:36:41,563 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3cefbf15-b97e-4f13-b428-98455d16b64e
2025-02-11 19:36:41,574 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5c5f1f0c-c35c-4258-9a98-671c74dbe3f6
2025-02-11 19:36:41,583 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5c5f1f0c-c35c-4258-9a98-671c74dbe3f6
2025-02-11 19:36:41,591 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/44a6a698-d3b2-477d-b499-9ec2b59b0ddc
2025-02-11 19:36:41,599 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 19:36:41,599 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3cefbf15-b97e-4f13-b428-98455d16b64e
2025-02-11 19:36:41,610 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5c5f1f0c-c35c-4258-9a98-671c74dbe3f6
2025-02-11 19:36:41,629 - INFO - Verified VN network id 8 for VN 3cefbf15-b97e-4f13-b428-98455d16b64e
2025-02-11 19:36:41,629 - INFO - Verifications in API Server for VN ctest-vn-34748016 passed
2025-02-11 19:36:41,629 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3cefbf15-b97e-4f13-b428-98455d16b64e
2025-02-11 19:36:41,641 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5c5f1f0c-c35c-4258-9a98-671c74dbe3f6
2025-02-11 19:36:41,652 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/5c5f1f0c-c35c-4258-9a98-671c74dbe3f6
2025-02-11 19:36:41,664 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/44a6a698-d3b2-477d-b499-9ec2b59b0ddc
2025-02-11 19:36:41,679 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-34748016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63530956', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4390938261736804115', 'uuid-lslong': '12981793349577389646'}, 'enable': 'true', 'created': '2025-02-11T19:36:39', 'last-modified': '2025-02-11T19:36:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020079'}
2025-02-11 19:36:41,686 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-11 19:36:41,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34748016 passed
2025-02-11 19:36:41,687 - DEBUG - ====Verifying policy data for ctest-vn-34748016 in API_Server ======
2025-02-11 19:36:41,687 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 19:36:41,694 - DEBUG - Requesting: http://10.0.0.31:8082/domain/8d5f0e47-5b59-44b1-8577-9bbacf27fcc5
2025-02-11 19:36:41,708 - DEBUG - Requesting: http://10.0.0.31:8082/project/c862b1af-8d11-44b4-9664-8918eeaeed19
2025-02-11 19:36:41,782 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/3cefbf15-b97e-4f13-b428-98455d16b64e
2025-02-11 19:36:41,796 - DEBUG - ==>Verifying data for policy with id: 640c51eb-a48a-40bc-9089-63dde698cea8, fqn: ['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-policy-allow-all-34933980']
2025-02-11 19:36:41,796 - INFO - VN ctest-vn-34748016 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 19:36:41,796 - DEBUG - Verifying the vn in opserver
2025-02-11 19:36:41,796 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-34748016 virtual network link through opserver 10.0.0.31
2025-02-11 19:36:41,796 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-11 19:36:42,104 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-11 19:36:42,165 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-34748016', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-34748016?flat'}
2025-02-11 19:36:42,165 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-34748016 is found in opserver
2025-02-11 19:36:42,178 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 19:36:42,185 - DEBUG - VRF ids for VN ctest-vn-34748016: {}
2025-02-11 19:36:42,185 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 19:36:42,192 - DEBUG - Requesting: http://10.0.0.31:8082/domain/8d5f0e47-5b59-44b1-8577-9bbacf27fcc5
2025-02-11 19:36:42,206 - DEBUG - Requesting: http://10.0.0.31:8082/project/c862b1af-8d11-44b4-9664-8918eeaeed19
2025-02-11 19:36:42,289 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/bee5c758-dd2b-4e16-9691-47708e2d20aa
2025-02-11 19:36:42,303 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/bee5c758-dd2b-4e16-9691-47708e2d20aa
2025-02-11 19:36:42,316 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fdc1f782-bff2-4767-85f0-e6d2d0a4b3ea
2025-02-11 19:36:42,325 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fdc1f782-bff2-4767-85f0-e6d2d0a4b3ea
2025-02-11 19:36:42,334 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/41123e13-ca70-4b5b-823f-338345836951
2025-02-11 19:36:42,341 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 19:36:42,341 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/bee5c758-dd2b-4e16-9691-47708e2d20aa
2025-02-11 19:36:42,352 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fdc1f782-bff2-4767-85f0-e6d2d0a4b3ea
2025-02-11 19:36:42,369 - INFO - Verified VN network id 9 for VN bee5c758-dd2b-4e16-9691-47708e2d20aa
2025-02-11 19:36:42,369 - INFO - Verifications in API Server for VN ctest-vn-93229749 passed
2025-02-11 19:36:42,369 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/bee5c758-dd2b-4e16-9691-47708e2d20aa
2025-02-11 19:36:42,383 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fdc1f782-bff2-4767-85f0-e6d2d0a4b3ea
2025-02-11 19:36:42,392 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/fdc1f782-bff2-4767-85f0-e6d2d0a4b3ea
2025-02-11 19:36:42,399 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/41123e13-ca70-4b5b-823f-338345836951
2025-02-11 19:36:42,413 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-93229749', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63530956', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13755619821354700310', 'uuid-lslong': '10849531526059466922'}, 'enable': 'true', 'created': '2025-02-11T19:36:39', 'last-modified': '2025-02-11T19:36:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.503415'}
2025-02-11 19:36:42,420 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-11 19:36:42,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93229749 passed
2025-02-11 19:36:42,420 - DEBUG - ====Verifying policy data for ctest-vn-93229749 in API_Server ======
2025-02-11 19:36:42,420 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-02-11 19:36:42,428 - DEBUG - Requesting: http://10.0.0.31:8082/domain/8d5f0e47-5b59-44b1-8577-9bbacf27fcc5
2025-02-11 19:36:42,442 - DEBUG - Requesting: http://10.0.0.31:8082/project/c862b1af-8d11-44b4-9664-8918eeaeed19
2025-02-11 19:36:42,520 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/bee5c758-dd2b-4e16-9691-47708e2d20aa
2025-02-11 19:36:42,531 - DEBUG - ==>Verifying data for policy with id: 640c51eb-a48a-40bc-9089-63dde698cea8, fqn: ['default-domain', 'ctest-TestBasicPolicy-63530956', 'ctest-policy-allow-all-34933980']
2025-02-11 19:36:42,531 - INFO - VN ctest-vn-93229749 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-11 19:36:42,531 - DEBUG - Verifying the vn in opserver
2025-02-11 19:36:42,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-93229749 virtual network link through opserver 10.0.0.31
2025-02-11 19:36:42,531 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-02-11 19:36:42,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-93229749', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-93229749?flat'}
2025-02-11 19:36:42,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63530956:ctest-vn-93229749 is found in opserver
2025-02-11 19:36:42,566 - DEBUG - Do not have enough data to verify VN in agent
2025-02-11 19:36:42,572 - DEBUG - VRF ids for VN ctest-vn-93229749: {}
2025-02-11 19:36:42,636 - DEBUG - Services list from nova: [