2024-11-07 08:42:00,187 - INFO - Domain Default found not creating
2024-11-07 08:42:00,386 - INFO - Project ctest-TestBasicPolicy-54857728 not found, creating it
2024-11-07 08:42:00,899 - INFO - Created Project:ctest-TestBasicPolicy-54857728, ID : e4824b4f-7596-46d5-bb93-bdf18a7baf8d
2024-11-07 08:42:02,490 - INFO - ================================================================================
2024-11-07 08:42:02,490 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 08:42:02,490 - 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
2024-11-07 08:42:02,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with
2024-11-07 08:42:02,746 - INFO - Initial checks done. Running the testcase now
2024-11-07 08:42:02,746 - INFO -
2024-11-07 08:42:03,356 - DEBUG - Response for create_network : {'network': {'id': '0adfec60-7b36-4f4d-adc3-974f42ea6e73', 'name': 'ctest-vn-10193737', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-10193737'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 08:42:03,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '436119d9-1a70-48e9-b9b4-a65fd4d10db7', 'name': '', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'network_id': '0adfec60-7b36-4f4d-adc3-974f42ea6e73', 'ip_version': 4, 'cidr': '216.25.110.64/26', 'allocation_pools': [{'start': '216.25.110.66', 'end': '216.25.110.126'}], 'gateway_ip': '216.25.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.25.110.66', 'tags': [], 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d'}}
2024-11-07 08:42:03,566 - INFO - Created VN ctest-vn-10193737
2024-11-07 08:42:03,628 - DEBUG - VN ctest-vn-10193737 UUID is 0adfec60-7b36-4f4d-adc3-974f42ea6e73
2024-11-07 08:42:03,959 - DEBUG - Response for create_network : {'network': {'id': '6355177d-a7e8-4d7e-b713-baf9c1a995cb', 'name': 'ctest-vn-69502485', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-69502485'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 08:42:04,120 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad98a182-6194-42da-a0be-04fcf02a45b3', 'name': '', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'network_id': '6355177d-a7e8-4d7e-b713-baf9c1a995cb', 'ip_version': 4, 'cidr': '116.204.57.192/26', 'allocation_pools': [{'start': '116.204.57.194', 'end': '116.204.57.254'}], 'gateway_ip': '116.204.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.204.57.194', 'tags': [], 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d'}}
2024-11-07 08:42:04,139 - INFO - Created VN ctest-vn-69502485
2024-11-07 08:42:04,196 - DEBUG - VN ctest-vn-69502485 UUID is 6355177d-a7e8-4d7e-b713-baf9c1a995cb
2024-11-07 08:42:04,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737, 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-54857728:ctest-vn-69502485, 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]
2024-11-07 08:42:04,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0adfec60-7b36-4f4d-adc3-974f42ea6e73', 'name': 'ctest-vn-10193737', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['436119d9-1a70-48e9-b9b4-a65fd4d10db7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-10193737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487']], 'subnet_ipam': [{'subnet_cidr': '216.25.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 08:42:04,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6355177d-a7e8-4d7e-b713-baf9c1a995cb', 'name': 'ctest-vn-69502485', 'tenant_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'project_id': 'e4824b4f759646d5bb93bdf18a7baf8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad98a182-6194-42da-a0be-04fcf02a45b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-vn-69502485'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487']], 'subnet_ipam': [{'subnet_cidr': '116.204.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 08:42:05,104 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-07 08:42:05,397 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-07 08:42:05,431 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873
2024-11-07 08:42:05,447 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d
2024-11-07 08:42:05,527 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73
2024-11-07 08:42:05,543 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73
2024-11-07 08:42:05,559 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad
2024-11-07 08:42:05,570 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad
2024-11-07 08:42:05,579 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5a7cd0a4-c43c-4d72-8f15-e377700c66fe
2024-11-07 08:42:05,587 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 08:42:05,587 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73
2024-11-07 08:42:05,602 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad
2024-11-07 08:42:05,623 - INFO - Verified VN network id 8 for VN 0adfec60-7b36-4f4d-adc3-974f42ea6e73
2024-11-07 08:42:05,623 - INFO - Verifications in API Server for VN ctest-vn-10193737 passed
2024-11-07 08:42:05,624 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73
2024-11-07 08:42:05,640 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad
2024-11-07 08:42:05,650 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/227ee419-b883-4c81-9d7a-50d3c6265bad
2024-11-07 08:42:05,659 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5a7cd0a4-c43c-4d72-8f15-e377700c66fe
2024-11-07 08:42:05,673 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54857728', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '783604759313928013', 'uuid-lslong': '12521017755700981363'}, 'enable': 'true', 'created': '2024-11-07T08:42:03', 'last-modified': '2024-11-07T08:42:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.037482'}
2024-11-07 08:42:05,680 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 08:42:05,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10193737 passed
2024-11-07 08:42:05,680 - DEBUG - ====Verifying policy data for ctest-vn-10193737 in API_Server ======
2024-11-07 08:42:05,680 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-07 08:42:05,687 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873
2024-11-07 08:42:05,700 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d
2024-11-07 08:42:05,790 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0adfec60-7b36-4f4d-adc3-974f42ea6e73
2024-11-07 08:42:05,805 - DEBUG - ==>Verifying data for policy with id: 474b651b-4e85-402c-83c9-8d95b52e986c, fqn: ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487']
2024-11-07 08:42:05,805 - INFO - VN ctest-vn-10193737 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 08:42:05,805 - DEBUG - Verifying the vn in opserver
2024-11-07 08:42:05,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737 virtual network link through opserver 10.0.0.12
2024-11-07 08:42:05,806 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-07 08:42:06,106 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-07 08:42:06,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737?flat'}
2024-11-07 08:42:06,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-10193737 is found in opserver
2024-11-07 08:42:06,184 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 08:42:06,189 - DEBUG - VRF ids for VN ctest-vn-10193737: {}
2024-11-07 08:42:06,189 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-07 08:42:06,196 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873
2024-11-07 08:42:06,212 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d
2024-11-07 08:42:06,311 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb
2024-11-07 08:42:06,334 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb
2024-11-07 08:42:06,354 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660
2024-11-07 08:42:06,365 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660
2024-11-07 08:42:06,374 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a0e66739-4a9b-49f5-94ca-c6c25a7e45af
2024-11-07 08:42:06,382 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 08:42:06,383 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb
2024-11-07 08:42:06,402 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660
2024-11-07 08:42:06,425 - INFO - Verified VN network id 9 for VN 6355177d-a7e8-4d7e-b713-baf9c1a995cb
2024-11-07 08:42:06,425 - INFO - Verifications in API Server for VN ctest-vn-69502485 passed
2024-11-07 08:42:06,425 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb
2024-11-07 08:42:06,443 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660
2024-11-07 08:42:06,455 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/9a186afe-0df9-4da2-919a-efce0b341660
2024-11-07 08:42:06,464 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a0e66739-4a9b-49f5-94ca-c6c25a7e45af
2024-11-07 08:42:06,479 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54857728', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7157653011230641534', 'uuid-lslong': '13192093315357054411'}, 'enable': 'true', 'created': '2024-11-07T08:42:03', 'last-modified': '2024-11-07T08:42:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.580199'}
2024-11-07 08:42:06,486 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 08:42:06,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69502485 passed
2024-11-07 08:42:06,487 - DEBUG - ====Verifying policy data for ctest-vn-69502485 in API_Server ======
2024-11-07 08:42:06,487 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-07 08:42:06,495 - DEBUG - Requesting: http://10.0.0.12:8082/domain/68045652-5c67-4ec6-a65d-4750cb2c4873
2024-11-07 08:42:06,509 - DEBUG - Requesting: http://10.0.0.12:8082/project/e4824b4f-7596-46d5-bb93-bdf18a7baf8d
2024-11-07 08:42:06,602 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/6355177d-a7e8-4d7e-b713-baf9c1a995cb
2024-11-07 08:42:06,616 - DEBUG - ==>Verifying data for policy with id: 474b651b-4e85-402c-83c9-8d95b52e986c, fqn: ['default-domain', 'ctest-TestBasicPolicy-54857728', 'ctest-policy-allow-all-42341487']
2024-11-07 08:42:06,616 - INFO - VN ctest-vn-69502485 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 08:42:06,617 - DEBUG - Verifying the vn in opserver
2024-11-07 08:42:06,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485 virtual network link through opserver 10.0.0.12
2024-11-07 08:42:06,617 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-07 08:42:06,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485?flat'}
2024-11-07 08:42:06,629 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54857728:ctest-vn-69502485 is found in opserver
2024-11-07 08:42:06,641 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 08:42:06,647 - DEBUG - VRF ids for VN ctest-vn-69502485: {}
2024-11-07 08:42:06,714 - DEBUG - Services list from nova: [