2024-09-17 20:19:16,346 - INFO - Domain Default found not creating
2024-09-17 20:19:16,511 - INFO - Project ctest-TestBasicPolicy-19814295 not found, creating it
2024-09-17 20:19:17,018 - INFO - Created Project:ctest-TestBasicPolicy-19814295, ID : f5a0d429-c648-4b82-ab12-03e3761d3afb
2024-09-17 20:19:18,529 - INFO - ================================================================================
2024-09-17 20:19:18,530 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 20:19:18,530 - 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-09-17 20:19:18,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.5': '0'}} with
2024-09-17 20:19:18,789 - INFO - Initial checks done. Running the testcase now
2024-09-17 20:19:18,789 - INFO -
2024-09-17 20:19:19,388 - DEBUG - Response for create_network : {'network': {'id': '4c12d9fd-7b68-4be9-bcb3-5f0a9542882f', 'name': 'ctest-vn-89057035', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-89057035'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:19:19,585 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f4b25ec-fa36-46e7-980e-059f941cd2af', 'name': '', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'network_id': '4c12d9fd-7b68-4be9-bcb3-5f0a9542882f', 'ip_version': 4, 'cidr': '40.175.4.128/26', 'allocation_pools': [{'start': '40.175.4.130', 'end': '40.175.4.190'}], 'gateway_ip': '40.175.4.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.175.4.130', 'tags': [], 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb'}}
2024-09-17 20:19:19,607 - INFO - Created VN ctest-vn-89057035
2024-09-17 20:19:19,666 - DEBUG - VN ctest-vn-89057035 UUID is 4c12d9fd-7b68-4be9-bcb3-5f0a9542882f
2024-09-17 20:19:19,984 - DEBUG - Response for create_network : {'network': {'id': '4c431662-02d1-4934-9aba-d50a49407c42', 'name': 'ctest-vn-72578339', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-72578339'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:19:20,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '700cdf52-9f76-4144-8fbd-62fbc1463ab9', 'name': '', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'network_id': '4c431662-02d1-4934-9aba-d50a49407c42', 'ip_version': 4, 'cidr': '79.221.241.64/26', 'allocation_pools': [{'start': '79.221.241.66', 'end': '79.221.241.126'}], 'gateway_ip': '79.221.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.221.241.66', 'tags': [], 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb'}}
2024-09-17 20:19:20,217 - INFO - Created VN ctest-vn-72578339
2024-09-17 20:19:20,274 - DEBUG - VN ctest-vn-72578339 UUID is 4c431662-02d1-4934-9aba-d50a49407c42
2024-09-17 20:19:20,407 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035, 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-19814295:ctest-vn-72578339, 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-09-17 20:19:20,726 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c12d9fd-7b68-4be9-bcb3-5f0a9542882f', 'name': 'ctest-vn-89057035', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f4b25ec-fa36-46e7-980e-059f941cd2af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-89057035'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076']], 'subnet_ipam': [{'subnet_cidr': '40.175.4.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:19:20,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c431662-02d1-4934-9aba-d50a49407c42', 'name': 'ctest-vn-72578339', 'tenant_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'project_id': 'f5a0d429c6484b82ab1203e3761d3afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['700cdf52-9f76-4144-8fbd-62fbc1463ab9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-vn-72578339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076']], 'subnet_ipam': [{'subnet_cidr': '79.221.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:19:21,166 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 20:19:21,460 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 20:19:21,499 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6
2024-09-17 20:19:21,521 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb
2024-09-17 20:19:21,615 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f
2024-09-17 20:19:21,634 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f
2024-09-17 20:19:21,651 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e
2024-09-17 20:19:21,662 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e
2024-09-17 20:19:21,674 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/36f2dbac-b2aa-45f9-ab78-3bd8a7fdf184
2024-09-17 20:19:21,683 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 20:19:21,683 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f
2024-09-17 20:19:21,700 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e
2024-09-17 20:19:21,721 - INFO - Verified VN network id 8 for VN 4c12d9fd-7b68-4be9-bcb3-5f0a9542882f
2024-09-17 20:19:21,721 - INFO - Verifications in API Server for VN ctest-vn-89057035 passed
2024-09-17 20:19:21,721 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f
2024-09-17 20:19:21,735 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e
2024-09-17 20:19:21,746 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c31d6c20-c5a5-4c43-82d2-eb496b2b3b6e
2024-09-17 20:19:21,758 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/36f2dbac-b2aa-45f9-ab78-3bd8a7fdf184
2024-09-17 20:19:21,774 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19814295', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5481683379183700969', 'uuid-lslong': '13597316199020136495'}, 'enable': 'true', 'created': '2024-09-17T20:19:19', 'last-modified': '2024-09-17T20:19:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.075562'}
2024-09-17 20:19:21,781 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 20:19:21,781 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89057035 passed
2024-09-17 20:19:21,781 - DEBUG - ====Verifying policy data for ctest-vn-89057035 in API_Server ======
2024-09-17 20:19:21,781 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 20:19:21,788 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6
2024-09-17 20:19:21,802 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb
2024-09-17 20:19:21,889 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c12d9fd-7b68-4be9-bcb3-5f0a9542882f
2024-09-17 20:19:21,906 - DEBUG - ==>Verifying data for policy with id: 86b42733-0172-49ea-b245-74a3a67d1b31, fqn: ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076']
2024-09-17 20:19:21,906 - INFO - VN ctest-vn-89057035 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 20:19:21,906 - DEBUG - Verifying the vn in opserver
2024-09-17 20:19:21,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035 virtual network link through opserver 10.0.0.65
2024-09-17 20:19:21,907 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-09-17 20:19:22,206 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-09-17 20:19:22,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035?flat'}
2024-09-17 20:19:22,274 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-89057035 is found in opserver
2024-09-17 20:19:22,285 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 20:19:22,290 - DEBUG - VRF ids for VN ctest-vn-89057035: {}
2024-09-17 20:19:22,290 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 20:19:22,297 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6
2024-09-17 20:19:22,310 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb
2024-09-17 20:19:22,390 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42
2024-09-17 20:19:22,407 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42
2024-09-17 20:19:22,420 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d
2024-09-17 20:19:22,430 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d
2024-09-17 20:19:22,439 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/67ec9d4d-3e34-4000-aad1-9e08420387b7
2024-09-17 20:19:22,446 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 20:19:22,446 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42
2024-09-17 20:19:22,460 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d
2024-09-17 20:19:22,480 - INFO - Verified VN network id 9 for VN 4c431662-02d1-4934-9aba-d50a49407c42
2024-09-17 20:19:22,480 - INFO - Verifications in API Server for VN ctest-vn-72578339 passed
2024-09-17 20:19:22,480 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42
2024-09-17 20:19:22,495 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d
2024-09-17 20:19:22,504 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dce13a64-b81d-4fb1-bbeb-cdd5144bae6d
2024-09-17 20:19:22,513 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/67ec9d4d-3e34-4000-aad1-9e08420387b7
2024-09-17 20:19:22,528 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19814295', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5495260580532013364', 'uuid-lslong': '11149458067664436290'}, 'enable': 'true', 'created': '2024-09-17T20:19:19', 'last-modified': '2024-09-17T20:19:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.579240'}
2024-09-17 20:19:22,534 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 20:19:22,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72578339 passed
2024-09-17 20:19:22,535 - DEBUG - ====Verifying policy data for ctest-vn-72578339 in API_Server ======
2024-09-17 20:19:22,535 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2024-09-17 20:19:22,540 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1957e9b6-86fa-4554-a4b3-3720c7a4bad6
2024-09-17 20:19:22,554 - DEBUG - Requesting: http://10.0.0.65:8082/project/f5a0d429-c648-4b82-ab12-03e3761d3afb
2024-09-17 20:19:22,636 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4c431662-02d1-4934-9aba-d50a49407c42
2024-09-17 20:19:22,651 - DEBUG - ==>Verifying data for policy with id: 86b42733-0172-49ea-b245-74a3a67d1b31, fqn: ['default-domain', 'ctest-TestBasicPolicy-19814295', 'ctest-policy-allow-all-81734076']
2024-09-17 20:19:22,651 - INFO - VN ctest-vn-72578339 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 20:19:22,651 - DEBUG - Verifying the vn in opserver
2024-09-17 20:19:22,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339 virtual network link through opserver 10.0.0.65
2024-09-17 20:19:22,651 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2024-09-17 20:19:22,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339?flat'}
2024-09-17 20:19:22,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19814295:ctest-vn-72578339 is found in opserver
2024-09-17 20:19:22,674 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 20:19:22,680 - DEBUG - VRF ids for VN ctest-vn-72578339: {}
2024-09-17 20:19:22,736 - DEBUG - Services list from nova: [