2025-01-15 19:27:22,319 - INFO - Domain Default found not creating
2025-01-15 19:27:22,494 - INFO - Project ctest-TestBasicPolicy-38458116 not found, creating it
2025-01-15 19:27:22,965 - INFO - Created Project:ctest-TestBasicPolicy-38458116, ID : a02188bf-95d9-4fee-8f41-15974b007dee
2025-01-15 19:27:24,534 - INFO - ================================================================================
2025-01-15 19:27:24,534 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 19:27:24,534 - 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-15 19:27:24,790 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.13': '0'}} with
2025-01-15 19:27:24,790 - INFO - Initial checks done. Running the testcase now
2025-01-15 19:27:24,790 - INFO -
2025-01-15 19:27:25,361 - DEBUG - Response for create_network : {'network': {'id': '48d82248-8438-483d-9fc5-f61787096212', 'name': 'ctest-vn-13726920', 'tenant_id': 'a02188bf95d94fee8f4115974b007dee', 'project_id': 'a02188bf95d94fee8f4115974b007dee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-vn-13726920'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:27:25,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '4527bbbf-6763-45ff-8c81-58ba95ff5dd1', 'name': '', 'tenant_id': 'a02188bf95d94fee8f4115974b007dee', 'network_id': '48d82248-8438-483d-9fc5-f61787096212', 'ip_version': 4, 'cidr': '61.141.192.192/26', 'allocation_pools': [{'start': '61.141.192.194', 'end': '61.141.192.254'}], 'gateway_ip': '61.141.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.141.192.194', 'tags': [], 'project_id': 'a02188bf95d94fee8f4115974b007dee'}}
2025-01-15 19:27:25,580 - INFO - Created VN ctest-vn-13726920
2025-01-15 19:27:25,632 - DEBUG - VN ctest-vn-13726920 UUID is 48d82248-8438-483d-9fc5-f61787096212
2025-01-15 19:27:25,934 - DEBUG - Response for create_network : {'network': {'id': 'a45d004c-9a4d-44c2-bcae-498758b48b8d', 'name': 'ctest-vn-31451204', 'tenant_id': 'a02188bf95d94fee8f4115974b007dee', 'project_id': 'a02188bf95d94fee8f4115974b007dee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-vn-31451204'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:27:26,154 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2dbb43a-54c6-4035-bec4-a9f65cf223b2', 'name': '', 'tenant_id': 'a02188bf95d94fee8f4115974b007dee', 'network_id': 'a45d004c-9a4d-44c2-bcae-498758b48b8d', 'ip_version': 4, 'cidr': '102.222.24.192/26', 'allocation_pools': [{'start': '102.222.24.194', 'end': '102.222.24.254'}], 'gateway_ip': '102.222.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.222.24.194', 'tags': [], 'project_id': 'a02188bf95d94fee8f4115974b007dee'}}
2025-01-15 19:27:26,175 - INFO - Created VN ctest-vn-31451204
2025-01-15 19:27:26,228 - DEBUG - VN ctest-vn-31451204 UUID is a45d004c-9a4d-44c2-bcae-498758b48b8d
2025-01-15 19:27:26,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-13726920, 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-38458116:ctest-vn-31451204, 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-15 19:27:26,647 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48d82248-8438-483d-9fc5-f61787096212', 'name': 'ctest-vn-13726920', 'tenant_id': 'a02188bf95d94fee8f4115974b007dee', 'project_id': 'a02188bf95d94fee8f4115974b007dee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4527bbbf-6763-45ff-8c81-58ba95ff5dd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-vn-13726920'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-policy-allow-all-07389214']], 'subnet_ipam': [{'subnet_cidr': '61.141.192.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:27:26,892 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a45d004c-9a4d-44c2-bcae-498758b48b8d', 'name': 'ctest-vn-31451204', 'tenant_id': 'a02188bf95d94fee8f4115974b007dee', 'project_id': 'a02188bf95d94fee8f4115974b007dee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2dbb43a-54c6-4035-bec4-a9f65cf223b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-vn-31451204'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-policy-allow-all-07389214']], 'subnet_ipam': [{'subnet_cidr': '102.222.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:27:27,060 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-15 19:27:27,383 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-15 19:27:27,416 - DEBUG - Requesting: http://10.0.0.24:8082/domain/12feb600-2829-4e08-86a5-17d44747a9b0
2025-01-15 19:27:27,431 - DEBUG - Requesting: http://10.0.0.24:8082/project/a02188bf-95d9-4fee-8f41-15974b007dee
2025-01-15 19:27:27,508 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/48d82248-8438-483d-9fc5-f61787096212
2025-01-15 19:27:27,520 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/48d82248-8438-483d-9fc5-f61787096212
2025-01-15 19:27:27,530 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d55fca8d-6e29-4549-9467-9c579cd1c783
2025-01-15 19:27:27,538 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d55fca8d-6e29-4549-9467-9c579cd1c783
2025-01-15 19:27:27,546 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/1d5662fc-31f5-4c65-8fcf-c9985aa02d0b
2025-01-15 19:27:27,553 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 19:27:27,553 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/48d82248-8438-483d-9fc5-f61787096212
2025-01-15 19:27:27,562 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d55fca8d-6e29-4549-9467-9c579cd1c783
2025-01-15 19:27:27,578 - INFO - Verified VN network id 8 for VN 48d82248-8438-483d-9fc5-f61787096212
2025-01-15 19:27:27,579 - INFO - Verifications in API Server for VN ctest-vn-13726920 passed
2025-01-15 19:27:27,579 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/48d82248-8438-483d-9fc5-f61787096212
2025-01-15 19:27:27,589 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d55fca8d-6e29-4549-9467-9c579cd1c783
2025-01-15 19:27:27,597 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d55fca8d-6e29-4549-9467-9c579cd1c783
2025-01-15 19:27:27,605 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/1d5662fc-31f5-4c65-8fcf-c9985aa02d0b
2025-01-15 19:27:27,619 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-13726920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38458116', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5248983060551583805', 'uuid-lslong': '11512878603352760850'}, 'enable': 'true', 'created': '2025-01-15T19:27:25', 'last-modified': '2025-01-15T19:27:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.996041'}
2025-01-15 19:27:27,626 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 19:27:27,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13726920 passed
2025-01-15 19:27:27,626 - DEBUG - ====Verifying policy data for ctest-vn-13726920 in API_Server ======
2025-01-15 19:27:27,626 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-15 19:27:27,632 - DEBUG - Requesting: http://10.0.0.24:8082/domain/12feb600-2829-4e08-86a5-17d44747a9b0
2025-01-15 19:27:27,643 - DEBUG - Requesting: http://10.0.0.24:8082/project/a02188bf-95d9-4fee-8f41-15974b007dee
2025-01-15 19:27:27,721 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/48d82248-8438-483d-9fc5-f61787096212
2025-01-15 19:27:27,732 - DEBUG - ==>Verifying data for policy with id: 5ea2b02f-8854-4b52-b25a-0c899d8ea6ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-policy-allow-all-07389214']
2025-01-15 19:27:27,732 - INFO - VN ctest-vn-13726920 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 19:27:27,732 - DEBUG - Verifying the vn in opserver
2025-01-15 19:27:27,732 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-13726920 virtual network link through opserver 10.0.0.24
2025-01-15 19:27:27,732 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-15 19:27:28,034 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-15 19:27:28,093 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-13726920', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-13726920?flat'}
2025-01-15 19:27:28,093 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-13726920 is found in opserver
2025-01-15 19:27:28,105 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 19:27:28,111 - DEBUG - VRF ids for VN ctest-vn-13726920: {}
2025-01-15 19:27:28,111 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-15 19:27:28,117 - DEBUG - Requesting: http://10.0.0.24:8082/domain/12feb600-2829-4e08-86a5-17d44747a9b0
2025-01-15 19:27:28,130 - DEBUG - Requesting: http://10.0.0.24:8082/project/a02188bf-95d9-4fee-8f41-15974b007dee
2025-01-15 19:27:28,201 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a45d004c-9a4d-44c2-bcae-498758b48b8d
2025-01-15 19:27:28,214 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a45d004c-9a4d-44c2-bcae-498758b48b8d
2025-01-15 19:27:28,225 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/8775de89-cbad-40d1-9c39-2a4cedd12bcb
2025-01-15 19:27:28,234 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/8775de89-cbad-40d1-9c39-2a4cedd12bcb
2025-01-15 19:27:28,242 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/c2705149-0586-47f1-ae84-ab67fa686355
2025-01-15 19:27:28,249 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 19:27:28,249 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a45d004c-9a4d-44c2-bcae-498758b48b8d
2025-01-15 19:27:28,259 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/8775de89-cbad-40d1-9c39-2a4cedd12bcb
2025-01-15 19:27:28,274 - INFO - Verified VN network id 9 for VN a45d004c-9a4d-44c2-bcae-498758b48b8d
2025-01-15 19:27:28,274 - INFO - Verifications in API Server for VN ctest-vn-31451204 passed
2025-01-15 19:27:28,274 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a45d004c-9a4d-44c2-bcae-498758b48b8d
2025-01-15 19:27:28,285 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/8775de89-cbad-40d1-9c39-2a4cedd12bcb
2025-01-15 19:27:28,293 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/8775de89-cbad-40d1-9c39-2a4cedd12bcb
2025-01-15 19:27:28,302 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/c2705149-0586-47f1-ae84-ab67fa686355
2025-01-15 19:27:28,316 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-31451204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38458116', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11843622924060542146', 'uuid-lslong': '13595885170735745933'}, 'enable': 'true', 'created': '2025-01-15T19:27:25', 'last-modified': '2025-01-15T19:27:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444404'}
2025-01-15 19:27:28,324 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 19:27:28,324 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31451204 passed
2025-01-15 19:27:28,324 - DEBUG - ====Verifying policy data for ctest-vn-31451204 in API_Server ======
2025-01-15 19:27:28,324 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-01-15 19:27:28,330 - DEBUG - Requesting: http://10.0.0.24:8082/domain/12feb600-2829-4e08-86a5-17d44747a9b0
2025-01-15 19:27:28,342 - DEBUG - Requesting: http://10.0.0.24:8082/project/a02188bf-95d9-4fee-8f41-15974b007dee
2025-01-15 19:27:28,421 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a45d004c-9a4d-44c2-bcae-498758b48b8d
2025-01-15 19:27:28,431 - DEBUG - ==>Verifying data for policy with id: 5ea2b02f-8854-4b52-b25a-0c899d8ea6ff, fqn: ['default-domain', 'ctest-TestBasicPolicy-38458116', 'ctest-policy-allow-all-07389214']
2025-01-15 19:27:28,431 - INFO - VN ctest-vn-31451204 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 19:27:28,431 - DEBUG - Verifying the vn in opserver
2025-01-15 19:27:28,431 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-31451204 virtual network link through opserver 10.0.0.24
2025-01-15 19:27:28,431 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-01-15 19:27:28,442 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-31451204', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-31451204?flat'}
2025-01-15 19:27:28,442 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38458116:ctest-vn-31451204 is found in opserver
2025-01-15 19:27:28,452 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 19:27:28,457 - DEBUG - VRF ids for VN ctest-vn-31451204: {}
2025-01-15 19:27:28,513 - DEBUG - Services list from nova: [