2025-01-02 14:20:07,482 - INFO - Domain Default found not creating
2025-01-02 14:20:07,631 - INFO - Project ctest-TestBasicPolicy-73771670 not found, creating it
2025-01-02 14:20:08,079 - INFO - Created Project:ctest-TestBasicPolicy-73771670, ID : c824707a-69b1-4b08-b3f4-2df7de5f5787
2025-01-02 14:20:09,541 - INFO - ================================================================================
2025-01-02 14:20:09,541 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 14:20:09,541 - 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-02 14:20:09,801 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.26': '0'}} with
2025-01-02 14:20:09,801 - INFO - Initial checks done. Running the testcase now
2025-01-02 14:20:09,801 - INFO -
2025-01-02 14:20:10,380 - DEBUG - Response for create_network : {'network': {'id': '933fd8d5-bde5-473f-81df-870b3b891378', 'name': 'ctest-vn-84561339', 'tenant_id': 'c824707a69b14b08b3f42df7de5f5787', 'project_id': 'c824707a69b14b08b3f42df7de5f5787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-vn-84561339'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 14:20:10,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d65f47c-08ca-4f60-9072-dc289085ffda', 'name': '', 'tenant_id': 'c824707a69b14b08b3f42df7de5f5787', 'network_id': '933fd8d5-bde5-473f-81df-870b3b891378', 'ip_version': 4, 'cidr': '216.181.78.0/26', 'allocation_pools': [{'start': '216.181.78.2', 'end': '216.181.78.62'}], 'gateway_ip': '216.181.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.181.78.2', 'tags': [], 'project_id': 'c824707a69b14b08b3f42df7de5f5787'}}
2025-01-02 14:20:10,608 - INFO - Created VN ctest-vn-84561339
2025-01-02 14:20:10,663 - DEBUG - VN ctest-vn-84561339 UUID is 933fd8d5-bde5-473f-81df-870b3b891378
2025-01-02 14:20:10,986 - DEBUG - Response for create_network : {'network': {'id': 'c335ea6b-c00a-413a-bacf-30634a42cb74', 'name': 'ctest-vn-24953566', 'tenant_id': 'c824707a69b14b08b3f42df7de5f5787', 'project_id': 'c824707a69b14b08b3f42df7de5f5787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-vn-24953566'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 14:20:11,165 - DEBUG - Response for create_subnet : {'subnet': {'id': '7161bdca-8d47-4138-a6fb-9985963ae915', 'name': '', 'tenant_id': 'c824707a69b14b08b3f42df7de5f5787', 'network_id': 'c335ea6b-c00a-413a-bacf-30634a42cb74', 'ip_version': 4, 'cidr': '61.32.208.192/26', 'allocation_pools': [{'start': '61.32.208.194', 'end': '61.32.208.254'}], 'gateway_ip': '61.32.208.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.32.208.194', 'tags': [], 'project_id': 'c824707a69b14b08b3f42df7de5f5787'}}
2025-01-02 14:20:11,185 - INFO - Created VN ctest-vn-24953566
2025-01-02 14:20:11,239 - DEBUG - VN ctest-vn-24953566 UUID is c335ea6b-c00a-413a-bacf-30634a42cb74
2025-01-02 14:20:11,394 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-84561339, 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-73771670:ctest-vn-24953566, 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-02 14:20:11,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '933fd8d5-bde5-473f-81df-870b3b891378', 'name': 'ctest-vn-84561339', 'tenant_id': 'c824707a69b14b08b3f42df7de5f5787', 'project_id': 'c824707a69b14b08b3f42df7de5f5787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d65f47c-08ca-4f60-9072-dc289085ffda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-vn-84561339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-policy-allow-all-32844827']], 'subnet_ipam': [{'subnet_cidr': '216.181.78.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 14:20:11,915 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c335ea6b-c00a-413a-bacf-30634a42cb74', 'name': 'ctest-vn-24953566', 'tenant_id': 'c824707a69b14b08b3f42df7de5f5787', 'project_id': 'c824707a69b14b08b3f42df7de5f5787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7161bdca-8d47-4138-a6fb-9985963ae915'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-vn-24953566'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-policy-allow-all-32844827']], 'subnet_ipam': [{'subnet_cidr': '61.32.208.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 14:20:12,079 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-02 14:20:12,373 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-02 14:20:12,406 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ac2c3569-fa80-47b5-ba24-17574fdbcf63
2025-01-02 14:20:12,418 - DEBUG - Requesting: http://10.0.0.40:8082/project/c824707a-69b1-4b08-b3f4-2df7de5f5787
2025-01-02 14:20:12,491 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/933fd8d5-bde5-473f-81df-870b3b891378
2025-01-02 14:20:12,502 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/933fd8d5-bde5-473f-81df-870b3b891378
2025-01-02 14:20:12,512 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/e90b40de-565c-4292-bbbd-44bf38e69f3e
2025-01-02 14:20:12,519 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/e90b40de-565c-4292-bbbd-44bf38e69f3e
2025-01-02 14:20:12,525 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a7fbb7d0-c90f-4bf6-aa8e-7bcfea696caf
2025-01-02 14:20:12,531 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 14:20:12,531 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/933fd8d5-bde5-473f-81df-870b3b891378
2025-01-02 14:20:12,540 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/e90b40de-565c-4292-bbbd-44bf38e69f3e
2025-01-02 14:20:12,552 - INFO - Verified VN network id 7 for VN 933fd8d5-bde5-473f-81df-870b3b891378
2025-01-02 14:20:12,552 - INFO - Verifications in API Server for VN ctest-vn-84561339 passed
2025-01-02 14:20:12,552 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/933fd8d5-bde5-473f-81df-870b3b891378
2025-01-02 14:20:12,562 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/e90b40de-565c-4292-bbbd-44bf38e69f3e
2025-01-02 14:20:12,569 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/e90b40de-565c-4292-bbbd-44bf38e69f3e
2025-01-02 14:20:12,575 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a7fbb7d0-c90f-4bf6-aa8e-7bcfea696caf
2025-01-02 14:20:12,588 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-84561339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73771670', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10610437659633731391', 'uuid-lslong': '9358347033012409208'}, 'enable': 'true', 'created': '2025-01-02T14:20:10', 'last-modified': '2025-01-02T14:20:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924311'}
2025-01-02 14:20:12,594 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 14:20:12,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84561339 passed
2025-01-02 14:20:12,595 - DEBUG - ====Verifying policy data for ctest-vn-84561339 in API_Server ======
2025-01-02 14:20:12,595 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-02 14:20:12,600 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ac2c3569-fa80-47b5-ba24-17574fdbcf63
2025-01-02 14:20:12,612 - DEBUG - Requesting: http://10.0.0.40:8082/project/c824707a-69b1-4b08-b3f4-2df7de5f5787
2025-01-02 14:20:12,679 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/933fd8d5-bde5-473f-81df-870b3b891378
2025-01-02 14:20:12,689 - DEBUG - ==>Verifying data for policy with id: 78979f9c-4982-415b-aa52-b6767217712c, fqn: ['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-policy-allow-all-32844827']
2025-01-02 14:20:12,689 - INFO - VN ctest-vn-84561339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 14:20:12,689 - DEBUG - Verifying the vn in opserver
2025-01-02 14:20:12,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-84561339 virtual network link through opserver 10.0.0.40
2025-01-02 14:20:12,689 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-02 14:20:12,981 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-02 14:20:13,040 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-84561339', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-84561339?flat'}
2025-01-02 14:20:13,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-84561339 is found in opserver
2025-01-02 14:20:13,053 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 14:20:13,059 - DEBUG - VRF ids for VN ctest-vn-84561339: {}
2025-01-02 14:20:13,059 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-02 14:20:13,065 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ac2c3569-fa80-47b5-ba24-17574fdbcf63
2025-01-02 14:20:13,077 - DEBUG - Requesting: http://10.0.0.40:8082/project/c824707a-69b1-4b08-b3f4-2df7de5f5787
2025-01-02 14:20:13,151 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c335ea6b-c00a-413a-bacf-30634a42cb74
2025-01-02 14:20:13,163 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c335ea6b-c00a-413a-bacf-30634a42cb74
2025-01-02 14:20:13,173 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/95123732-b452-42c6-9fba-6c5f180c3c11
2025-01-02 14:20:13,181 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/95123732-b452-42c6-9fba-6c5f180c3c11
2025-01-02 14:20:13,189 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/1df58abe-1296-4e19-874c-970de23e7737
2025-01-02 14:20:13,197 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 14:20:13,197 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c335ea6b-c00a-413a-bacf-30634a42cb74
2025-01-02 14:20:13,208 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/95123732-b452-42c6-9fba-6c5f180c3c11
2025-01-02 14:20:13,224 - INFO - Verified VN network id 8 for VN c335ea6b-c00a-413a-bacf-30634a42cb74
2025-01-02 14:20:13,224 - INFO - Verifications in API Server for VN ctest-vn-24953566 passed
2025-01-02 14:20:13,224 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c335ea6b-c00a-413a-bacf-30634a42cb74
2025-01-02 14:20:13,235 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/95123732-b452-42c6-9fba-6c5f180c3c11
2025-01-02 14:20:13,244 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/95123732-b452-42c6-9fba-6c5f180c3c11
2025-01-02 14:20:13,252 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/1df58abe-1296-4e19-874c-970de23e7737
2025-01-02 14:20:13,265 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-24953566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73771670', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14066406759665910074', 'uuid-lslong': '13461031014239488884'}, 'enable': 'true', 'created': '2025-01-02T14:20:10', 'last-modified': '2025-01-02T14:20:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.374374'}
2025-01-02 14:20:13,272 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 14:20:13,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24953566 passed
2025-01-02 14:20:13,272 - DEBUG - ====Verifying policy data for ctest-vn-24953566 in API_Server ======
2025-01-02 14:20:13,272 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2025-01-02 14:20:13,278 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ac2c3569-fa80-47b5-ba24-17574fdbcf63
2025-01-02 14:20:13,289 - DEBUG - Requesting: http://10.0.0.40:8082/project/c824707a-69b1-4b08-b3f4-2df7de5f5787
2025-01-02 14:20:13,364 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/c335ea6b-c00a-413a-bacf-30634a42cb74
2025-01-02 14:20:13,374 - DEBUG - ==>Verifying data for policy with id: 78979f9c-4982-415b-aa52-b6767217712c, fqn: ['default-domain', 'ctest-TestBasicPolicy-73771670', 'ctest-policy-allow-all-32844827']
2025-01-02 14:20:13,374 - INFO - VN ctest-vn-24953566 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 14:20:13,374 - DEBUG - Verifying the vn in opserver
2025-01-02 14:20:13,374 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-24953566 virtual network link through opserver 10.0.0.40
2025-01-02 14:20:13,374 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2025-01-02 14:20:13,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-24953566', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-24953566?flat'}
2025-01-02 14:20:13,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73771670:ctest-vn-24953566 is found in opserver
2025-01-02 14:20:13,396 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 14:20:13,402 - DEBUG - VRF ids for VN ctest-vn-24953566: {}
2025-01-02 14:20:13,455 - DEBUG - Services list from nova: [